Android Gradle Plugin Requires Java 17 To Run. You Are

  • The text mentions the need to upgrade both Gradle version and JDK version to 6.7 and 11 respectively in order to run the Android Gradle plugin. It also suggests using the Android Gradle plugin Upgrade Assistant to assist with these updates. Additionally, it mentions the need to configure build dependencies and build variants. The release introduces a new declarative test suite API and adds support for building projects with Java 17. There may be issues with building Gradle plugins written in Kotlin using this version.

To upgrade the Android Gradle plugin to use Java 17, you need to follow a few steps:

  1. Update Gradle version to 6.7 or higher.
  2. Install Java 17 and set it as your default JDK version.
  3. Utilize the Android Gradle plugin Upgrade Assistant to assist with the necessary updates, such as configuring build dependencies and build variants.

Please note that there may be issues with building Gradle plugins written in Kotlin using this version of the Android Gradle plugin. If you encounter any such issues, you may need to address them as well.

It's important to ensure all your dependencies and configurations are compatible with the updated versions to avoid any compatibility issues.

Work fast from anywhere

Stay up to date and move work forward with BrutusAI on macOS/iOS/web & android. Download the app today.