Does it matter what java you use with projects wi...
# android
c
Does it matter what java you use with projects with kotlin like java 25 with android studio?
👌 8
a
Yes
c
So use java 25 with android studio thanks.
a
Java 25 works if your Gradle and AGP versions support it. You can pick the JDK your project needs, as long as it's compatible with your AGP/Gradle versions. Just keep
compileOptions
and
jvmTarget
aligned.
m
@Amir Golmoradi Where can i check the compatibility between AGP and Java 21 (or above) ??
c
I use java 25 with gradle. I install gradle from homebrew
a
Very good, I prefer sdkman for managing my JDKs and gradle
c
Try to lean much as i can on Android i hope to get a app in google play console before i try out freelance. I got M5 Macbook
💯 1
a
@marlonlom Hey Marlon, you can find the AGP release notes on developer.android.com. To check which Gradle and JVM versions your project is using, simply run
./gradlew --version
from your project's root directory.
@coder Wishing you luck
c
What java come with android studio?
a
if you want to know about the bundle version, it's JetBrains runtime ( JBR ), which is a fork of OpenJDK.
e
Are we sure he is asking about building and not Android runtime?
Or both?
m
@Amir Golmoradi I'll try with jdk 25 and agp 9.5.0, as per @coder mentioned. in my case, im using gradle convention plugins and caching
b
th