Tip: After Android Studio upgrades Gradle, java11 reports an error solution
Article Directory
foreword
This series is mainly used to record the relevant content of learning Android. This article is about the solution to java11 error reporting after Android Studio upgrades Gradle
提示:以下是本篇文章正文内容,下面案例可供参考
1. Environmental conditions
The current Android Studio version is 2021.2.1, as shown in the figure below
The current gradle plugin version is 7.0.4, and the Gradel version is 7.0.2
2. Error message
The error message Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. means that the Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
3. Resolution steps
3.1 Open Settings
3.2 Open the Gradle configuration interface to configure the Gradle plugin
3.3 Just recompile