I've just installed Android Studio 1.3 into my Ubuntu 14.04 (64bit). I created a new project and after finishing the process Android Studio shows "Gradle 'MyApplication' project refresh failed".
I found same type of questions in Stackoverflow but any of the solution didn't fit for me. I couldn't figure out the problem.
Here are some screenshots:
After creating a new project it shows the following message:
When I opened the gradle-wrapper.properties file,I found as following:
When I checked the directory "android-studio/gradle/gradle-2.4/lib/plugins/" I found the file "gradle-diagnostics-2.4.jar".
Here is the log file - http://pastebin.com/QdXxCVc6
Please help me to solve the problem.
I had the same problem today when I upgraded from Android Studio 1.4 to 1.5. After some googling and checking stackoverflow threads I managed to found a solution by following these steps:-
distributionUrl=https://services.gradle.org/distributions/gradle-2.8-all.zip
This worked for me!
this is not really an answer, but since i have not enough reputation to post a comment... anyway:
I just downloaded and installed android studio 1.3 on Mac OS. but i installed it on an EXTERNAL harddrive, both android studio and android sdk.
but gradle is still looking for an absolute default-path (/Applications/Android Studio.app/Contents/.../gradle-diagnostics-2.4.jar). maybe it could help you or somebody else to track down the error.
I also faced the same error when I placed Android Studio into different directory.
The problem was solved by clicking File > Invalidate Caches / Restart
.
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