Android Studio (Beta) 0.8.6 gets stuck when I try to build/run the project, as well as clean it. It stays responsive, but the Gradle: Executing Tasks message doesn't disappear (longer than 20 minutes is when I give up) and the app never runs.
This is what I attempted:
Invalidate caches/restart
Force quit and restart
Remove it from Applications (on Mac) and re-download it from the official website.
Check your Internet connection. If internet speed is very slow gradle build will also take long time to build. I check by change my wifi internet connection with another one good speed connection. Now build time is normal.
Fixed it by going to Android Studio
-> Preferences
-> Gradle
-> and ticking Offline work
. Still have no idea what was wrong, but at least now it compiles.
Edit:
In new Android Studio Versions the path is File
-> Other Settings
-> Default Settings
-> Build-Excecution-Deployment
-> Gradle
The question seems old but in case anyone need it.
I have just faced this problem recently, after a fresh Ubuntu 14.04 installation.
After google for a while with no luck i checked the terminal, it turned out that libz.so.1
is missing. So i installed it, worked like charm.
Installing instruction here: libz.so.1: cannot open shared object file
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