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. |
* * Until the jangrewe/gitlab-ci-android decides to merge the jangrewe/gitlab-ci-android#77
New Android Gradle Plugin (8.0.0) requires JDK 17.
https://developer.android.com/build/releases/gradle-plugin#groovy