問題 * 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
以上的路徑要以自己的時(shí)機(jī)情況作修改文章來源:http://www.zghlxwxcb.cn/news/detail-499982.html
可以在android studio 的 gradle 配置里可以看到j(luò)ava11的路徑 加進(jìn)去就好文章來源地址http://www.zghlxwxcb.cn/news/detail-499982.html
到了這里,關(guān)于* What went wrong:A problem occurred evaluating project ‘:app‘.> Failed to apply plugin ‘com.andro的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!