Gradle error after updating Android Studio to 1.5

Today I updated my Android Studio to version 1.5. I have a libgdx project that works well before this update. Now I get this error message.

Error:Unable to load class 'org.gradle.mvn3.org.sonatype.aether.resolution.ArtifactResolutionException'. Possible causes for this unexpected error include:<ul><li>Gradle dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes. 

error message

I try to delete the .gradle folder, restart Android Studio, clean up the project, but I get the same error.

thanks for the help

+5
source share
2 answers

I just need to update the gradle build tool in the main gradle file

  classpath 'com.android.tools.build:gradle:1.3.0' classpath 'org.robovm:robovm-gradle-plugin:1.0.0-beta-04' 

in

  classpath 'com.android.tools.build:gradle:1.2.3' classpath 'org.robovm:robovm-gradle-plugin:1.9.0' 
+6
source

May be incompatible with Gradle and the maven version; delete the dir / gradle / wrapper project; put the correct version of Gradle in it; run it again

https://github.com/dcendents/android-maven-gradle-plugin

0
source

Source: https://habr.com/ru/post/1237518/


All Articles