打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Android studio提示Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

1、 问题

在Android studio里面运行java的lib库,但是错误提示如下

Build file 'F:\sourceZip\app\build.gradle' line: 2

An exception occurred applying plugin request [id: 'com.android.application']
> 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`.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

2、解决办法


点击File->Settings->输入Gradle->选Gradle JDK为11

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Android Studio为什么要用Gradle?
How to update gradle in android studio
2015 Google IO带来的新 Android 开发工具开发技术前线 | 开发技术前线
New in Android Studio 2.0: Instant Run and Cloud Test Lab
史上最详细的Android Studio系列教程四
Android Studio 之 gradle下载很慢、版本问题
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服