Unable to find java in the system path: error SDK

Captura de pantalla 2024-09-20 124747

When we tried to upgrade to API 34 we got this message and the application crashed. We tried to update the editor to the latest and got the same message. Unity editor version 2022.3.27f1

1 Like

Win32Exception: ApplicationName=‘C:\Users\PC_OBRADOIROS_01\Desktop\Curso unity\PoboAR-app\Temp\PlayServicesResolverGradle\gradlew.bat’, CommandLine=‘–no-daemon -b “C:\Users\PC_OBRADOIROS_01\Desktop\Curso unity\PoboAR-app\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle” “-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2022.3.27f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK” “-PTARGET_DIR=C:\Users\PC_OBRADOIROS_01\Desktop\Curso unity\PoboAR-app\Assets\Plugins\Android” “-PMAVEN_REPOS=https://maven.google.com/” “-PPACKAGES_TO_COPY=com.unity3d.ads:unity-ads:[4.12.0,4.13[” “-PUSE_JETIFIER=0” “-PDATA_BINDING_VERSION=7.1.2”’, CurrentDirectory=‘C:\Users\PC_OBRADOIROS_01\Desktop\Curso unity\PoboAR-app\Temp\PlayServicesResolverGradle’, Native error= El sistema no puede encontrar el archivo especificado.

1 Like

You can download JDK separately from here.
You can also install Android Studio and fetch it from here in kind of “Downloads” window.

And then you need to indicate it in Unity Preferences as mentioned in window you posted.