错误提示 * What went wrong: A problem occurred evaluating project ':App'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following o
起因 Android Studio的gradle在缓存处理上有时候会莫名其妙的出问题,必要时需要手动删除缓存,然后重新编译.有时也有出于其他考虑指定gradle缓存路径. 方法1:修改gradle文件 在gradle的安装目录,编辑bin文件夹下的gradle文件,然后找到如下语句: # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this scri
java本地代码运行正常,部署到服务器无法运行,错误如下: Caused by: java.lang.UnsupportedClassVersionError: com/teshehui/cms/activity/service/impl/ActivityServiceImpl : Unsupported major.minor version 51.0 (unable to load class com.teshehui.cms.activity.service.impl.ActivitySe