In some cases when your Gradle files are deleted or corrupted you will not be able to download new Gradle files in android studio. In this case, we have to delete the Gradle files which are present already and then again sync your project to download our Gradle files again. For finding your .
If gradle --version works, but all of your builds fail with the same error, it is possible there is a problem with one of your Gradle build configuration scripts. You can verify the problem is with Gradle scripts by running gradle help which executes configuration scripts, but no Gradle tasks.
I also had an issue downloading gradle
through AndroidStudio
. I tried the following.
AndroidStudio
directory where you installed your studio Like D:\User\AndroidStudio
AndroidStudio
go to \AndroidStudio\plugins\gradle\lib
and copy gradle.jar
gradle.jar
file in \AndroidStudio\lib
directory.gradle-1.6-bin.zip
- After extracting zip file - (bin, media, init.d, lib folders)
to \AndroidStudio\plugins\gradle
AndroidStudio
* Updated Answer *
And after following all the steps listed above, if it is not working, Kindly check below things.
1) Please delete .gradle
folder from your user like C:\Document and Settings\AndroidUser\***\.gradle
2) You can check your HTTP Proxy
in Settings
.
Hope this helps!
In my case, it was sufficient to specify the location of the Gradle distribution included with Android Studio when requested.
On a mac, it was: /Applications/Android Studio.app/Contents/gradle/gradle-2.2.1
On Linux, it can be generalized to {android-studio-root}/grade/gradle-{version}
your_project
" ok
IMPORT-> "your_project "
and follow the instruction Download gradle, and replace it with the file
gradle-1.6-bin.zip
located at:
C:\Users\<username>\.gradle\wrapper\dists\gradle-1.6-bin\<some_hash_key>\
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With