-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now using JDK 17. #77
base: master
Are you sure you want to change the base?
Conversation
New Android Gradle Plugin (8.0.0) requires JDK 17.
¡Necesito este cambio! |
@jangrewe a very critical fix. After updating AGP to 8.0, the image stopped working with an error "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". When should we wait for the release with this fix? |
Folks, I forked the project, applied this change and uploaded it to docker hub. You can now use I have added installation of both java 11 and java 17 to docker. Reason for this is that even though gradle requires java 17 for it's own internal purposes, Kotlin has some issues with java 17 compatibility. So I needed to install both versions and make project compatible with java 11.
I also needed to setup JAVA_HOME directly in the CI in order to get it work
Hope that it will help you. Github project: https://github.com/SumeraMartin/gitlab-ci-android |
@SumeraMartin I am getting unable to access 'https://gitlab.com/xxxxxx/xxxxxx.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none. Can you add the following in the docker image?
|
@ravibpatel feel free to create MR to that repo |
@SumeraMartin I think it won't be necessary. It seems image wasn't causing that issue after all. |
New Android Gradle Plugin (8.0.0) requires JDK 17.
https://developer.android.com/build/releases/gradle-plugin#groovy