I use unity 2020.3.13, i start to work with android game. I try to set the JDK with JDK that I got from Android Studio, but i get this error:
Incompatible Java version '16'
Android development requires JDK 8(1.8)64-bit. Having Java Runtime Environment(JRE) installed is not sufficient.
I'm confused because my JDK version is more than 8 but still can't. Do I have to install the exact JDK version 8? And is it better to use Unity's provided JDK, SDK, NDK, and Gradle or the ones from Android Studio?
Finally, it turned out that the problem was with my JDK installation. i re-installed the android module in unity and used the jdk given by unity and everything worked fine