You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'.
Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in /usr/lib/jvm/java-11-openjdk-amd64
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.
I am using 'gradlew wrapper' change version to 8.1
but base on some reasons I don't have permission to control our team Jenkins CI such as build args so that I can not type '--build-arg JDK_VERSION=17'
And I think it's time to upgrade your base image because start in AGP 8.x.x, minimum JDK is 17, and you could also upgrade Kotlin version to 1.8.x
I know above requirement upgrading for you seems like period routine, but your image really helps me a lot.
It's time to upgrade JDK to 17, as you said, AGP 8.0.0 requires JDK 17. Furthermore, even Android Studio is now bundled with JDK 17 by default.
However, this Docker image doesn't have many variants. Besides the legal issue, it's not feasible to consider or support infinite combinations of various software/package versions (Android SDK, JDK, Gradle and etc.). That's why we tried to leave the freedom to the users to decide. Thus, for other similar requests (to upgrade xyz versions), the user can simply fork the Docker base image and apply their own needs.
I'm going to merge this PR, so your requirement is fulfilled. I'll do a few more things and then publish the image.
A problem occurred evaluating project ':app'.
I am using 'gradlew wrapper' change version to 8.1
but base on some reasons I don't have permission to control our team Jenkins CI such as build args so that I can not type '--build-arg JDK_VERSION=17'
And I think it's time to upgrade your base image because start in AGP 8.x.x, minimum JDK is 17, and you could also upgrade Kotlin version to 1.8.x
I know above requirement upgrading for you seems like period routine, but your image really helps me a lot.
Thanks @thyrlian
The text was updated successfully, but these errors were encountered: