【发布时间】:2021-11-14 01:05:13
【问题描述】:
我正在使用带有 java dor 的 android studio 创建 android 应用程序,并且在 Gitlab 中将 gradle 更新到 7.0.2 管道后出现文本失败:
FAILURE: Build failed with an exception.
* Where:
Build file '/builds/kbinform/education72-android/Edu72/build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':Edu72'.
> 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 options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
尝试更改 IDE 设置但没有帮助 https://i.stack.imgur.com/1MxL2.png
【问题讨论】:
-
面临类似问题..你解决了吗
标签: java android gradle gitlab