Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle error after updating Android Studio to 1.5

Today I have updated my Android Studio to v1.5. I have libgdx project that works well until 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's 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've try deleting .gradle folder, restarting Android Studio, cleaning project , but I get the same error.

Thanks for help

like image 953
Jovan Avatar asked Dec 06 '15 17:12

Jovan


People also ask

What happens if Gradle sync failed in Android Studio?

Then open Android Studio and go to File > Settings > Build, Execution and Deployment > Gradle > Use Gradle from > Set the path of the downloaded Gradle. Step 4. Now try syncing the Gradle again and check if the error still persists.


1 Answers

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

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

to:

    classpath 'com.android.tools.build:gradle:1.2.3'
    classpath 'org.robovm:robovm-gradle-plugin:1.9.0'
like image 67
Jovan Avatar answered Nov 14 '22 23:11

Jovan