问题 * 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. Your current JDK is located in /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing `org.gradle.java.home` in `gradle.properties`. 在gradle.properties 增加 org.gradle.java.home=/Applications/Android Studio.app/Contents/jre/Contents/Home
以上的路径要以自己的时机情况作修改文章来源:https://www.toymoban.com/news/detail-499982.html
可以在android studio 的 gradle 配置里可以看到java11的路径 加进去就好文章来源地址https://www.toymoban.com/news/detail-499982.html
到了这里,关于* What went wrong:A problem occurred evaluating project ‘:app‘.> Failed to apply plugin ‘com.andro的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!