Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

\gradle-wrapper.properties not found in Android Studio

\gradle-wrapper.properties not found in Android Studio

I have cloned a git project and I am getting the below issue.

enter image description here

How to resolve it?

like image 857
Sazzad Hissain Khan Avatar asked Mar 06 '26 00:03

Sazzad Hissain Khan


2 Answers

Create a gradle/wrapper/gradle-wrapper.properties file and also put the gradle-wrapper.jar file in the same directory.

That's how the gradle-wrapper.properties file should look like:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip

You can also just copy the gradle directory from another project and edit the wrapper version.

like image 120
Martin Zeitler Avatar answered Mar 08 '26 15:03

Martin Zeitler


If it could be usefull, i will suggest the Official Doc: adding_wrapper

Running the Wrapper task

$ gradle wrapper
> Task :wrapper

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed

Then The generated Wrapper properties file, gradle/wrapper/gradle-wrapper.properties, stores the information about the Gradle distribution.

like image 41
LegitLearner Avatar answered Mar 08 '26 14:03

LegitLearner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!