Why Unity needs JDK for android build?

If I didn’t write any line of code in Java, why still Unity require JDK for building to android?

Yes since some of the tools that are executed as part of the build process require Java to be installed on your machine.

1 Like

Unity still has to compile the Android resources from the Android libraries, which produces R.java file, which needs to be compiled by javac.

Although looks like JDK is not needed for Gradle builds… But we still need at least Java Runtime.