[3rd-Party Apps] Android Studio 升级4.2.1版本后,一直报错,无法构建安卓程序
Tofloor
poster avatar
moshou
deepin
2021-07-14 00:39
Author

报错代码如下:

class jdk.internal.loader.ClassLoaders$PlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$PlatformClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')

class jdk.internal.loader.ClassLoaders$PlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$PlatformClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')

 

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

 

Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

 

Stop Gradle build processes (requires restart)

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.

 

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

 

Reply Favorite View the author
All Replies
sammy-621
deepin
2021-07-14 01:21
#1

终于又有人踩坑了,不要用最新版本的Android Studio,最新版的对Gradle 版本兼容有问题,我已经退到3.5.2了。

Reply View the author