Unity Android Support Setup JDK SDK NDK Gradle For All Versions .
Unity Android Support Setup JDK SDK NDK Gradle
1 – Install JDK
After that go to pc icon then choose C Drive and choose Program Files folder then choose Java folder then choose jdk1.8.0_77 folder and copy folder path like this
C:\Program Files\Java\jdk1.8.0_77
and go to unity and choose Edit then choose preferences then choose External Tools and scroll to JDK and uncheck box for JDK Installed with Unity and in the JDK field paste
C:\Program Files\Java\jdk1.8.0_77
C:\Program Files\Java\jdk-11.0.16.1
2 – Install SDK
And go to Android Studio then open SDK Manager and copy Android SDK Location then go to Unity and choose Edit then Preferences then External Tools and scroll to SDK and unckeck box for Android SDK Tools and Paste Android SDK Location path .
3 – Install NDK
After download ndk extract it and open ndk folder and copy ndk folder path then go to unity then Edit then Preferences then External Tools and scroll to NDK and uncheck box Android NDK installed with Unity and paste ndk folder path .
4 – Install Gradle
in these days gradle version 7 have problem so download gradle-6.9.2-all.zip
after download gradle extract it and open gradle folder then copy gradle folder path then go to unity then Edit then Preferences then External Tools and scroll to Gradle and uncheck Gradle Installed with Unity and paste gradle folder path .