![]() ![]() (Get it from Android Studio > SDK Manager > Android SDK > Android SDK Location.)ĩ.If needed, restart your computer for changes to take effect. ( )Ħ.If you are using Windows, Open Environment Variables and change Java Path via Right click My Computer/This PC>Properties>Advanced System Settings>Environment Variables>New>Variable Name: JAVA_HOME>Variable Value: ħ.In Unity 3D, press Edit > Preferences > External Tools and fill in the JDK path (Mine was "C:\Program Files\Java\jdk1.8.0_221").Ĩ.Also, in the same pop-up, edit SDK Path. ![]() ģ.Login to/Open a Oracle account if not already logged in.Ĥ.Download the older but functional JDK 8 for your computer set-up(32 bit/64 bit, Windows/Linux etc.)ĥ.Install the JDK. 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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |