Gradle error after updating Android Studio to 1.5

♀尐吖头ヾ 提交于 2019-12-10 13:54:50

问题


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.

I've try deleting .gradle folder, restarting Android Studio, cleaning project , but I get the same error.

Thanks for help


回答1:


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'



回答2:


May be incompatible with Gradle and maven version delete project dir/gradle/wrapper put a right version gradle into it run again

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



来源:https://stackoverflow.com/questions/34120392/gradle-error-after-updating-android-studio-to-1-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!