My suggestion is:ġ.Uninstall unwanted JDK if you have one installed already. JDK was located inĪnd Environment Variable in Windows was JAVA_HOME : C:\Program Files\Java\jdk-12.0.2Īfter 3 hours of research, I found out that Unity does not support JDK 10. SDK Packages was located inĪnd the error message I got was the same except the JDK (Java Development Kit) version "jdk-12.0.2". I was using the most recent Android Studio version, and all the SDK packages I could download via SDK Manager in Android Studio.
ANDROID SDK FOR MAC DOWNLOAD UNITY3D 2017.3.0F3 APK
In my case, I was trying to build and get APK for an old Unity 3D project (so that I can play the game in my Android phone). Please make sure the android sdk path is correct. (System.String javaExe, System.String sdkToolsDir, System.String sdkToolCommand, Int32 memoryMB, System.String workingdir, waitingForProcessToExit, System.String errorMsg)Įrror building Player: CommandInvokationFailure: Unable to list target platforms. (System.String javaExe, System.String sdkToolsDir, System.String sdkToolCommand, Int32 memoryMB, System.String workingdir, waitingForProcessToExit, System.String errorMsg) ( psi, waitingForProcessToExit, System.String errorMsg) See the Console for more details.Ĭ:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M ="C:/Users/great/AppData/Local/Android/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar". CommandInvokationFailure: Unable to list target platforms.