Reputation: 4881
I am using Android Studio on Linux.
And today I have updated it to version 2.3
stable but now I am not able to build any of my projects or even create a new project.
There is no error messages, just the building progress works for infinite time !
Edit 1:
I have also updated the Gradle plugin to 2.14.1
which was a recommendation message after staring Android Studio 2.3
Edit 2:
I have tried to build through CL
I used this command: ./gradlew assembleDebug
but it also did not work! giving this error:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: /home/atefhares/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1-all.zip at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
What should i do?
Upvotes: 4
Views: 1537
Reputation: 191710
You probably had to upgrade Gradle as part of the IDE upgrade.
Android Gradle Plugin : 2.3.0+
Gradle Version: 3.3+You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the
gradle/wrapper/gradle-wrapper.properties
file
More details here.
https://developer.android.com/studio/releases/gradle-plugin.html
Upvotes: 1