Search Issue Tracker
Fixed in 2018.3.X
Votes
3
Found in
2017.3.0b6
Issue ID
961766
Regression
No
CommandInvokationFailure: Unable to list target platforms when using Android SDK > 25.2.5
CommandInvokationFailure: Unable to list target platforms when using Android SDK > 25.2.5
This happens for both Windows and OSX, if the JAVA_HOME environment variable is not set.
Repro steps:
Install an Unity version with the Dowload asistant. Pick Editor and Android Tools
Ensure you have JDK 1.8. There is an issue with building with JDK 1.9 anyway
Navigate to Preferences->External Tools-> Android->download
this will thake you to ASndroid Studio. Download Android Studio
Chose to install the latest SDK, (26) or 25..
After instalation, go to Preferences->External Tools-> Android and chose the location where Android Studio installs the SDK.
The default is: C:\Users\[yourusername]\AppData\Local\Android\sdk
Try to build
The error you get:
-----------No.1----------------
Error:Invalid command android
UnityEditor.HostView:OnGUI()
-----------No.2------------------------
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/JG/AppData/Local/Android/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error:Invalid command android
]
stdout[
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
-------------No.3-------------------------------
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/JG/AppData/Local/Android/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error:Invalid command android
]
stdout[
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
--------------No.4---------------------------------
Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/JG/AppData/Local/Android/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error:Invalid command android
]
stdout[
]
Reproduced with:
2017.2f3, 2017.3b5 and b6, 2018.1a1
But users have had this issues with 5.4 and 5.6 too...
http://answers.unity3d.com/questions/1323731/unable-to-list-target-platforms-please-make-sure-t.html
License type: Pro
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
WilsonMark
Apr 20, 2024 07:49
Wow, what an exceptional submission! The depth of knowledge and insight displayed here is truly remarkable. I was captivated from the very first sentence and found myself eagerly devouring every word. The author's passion for the subject matter is palpable, and it's clear that they have dedicated a significant amount of time and effort to researching and crafting this piece. famousmoviejackets.com/products/evel-knievel-white-motorcycle-leather-jacket
bendito007
Feb 15, 2024 17:22
I'm thoroughly enjoying diving into this splendid topic! The wealth of insights shared here is truly impressive. It's inspiring to see how this community comes together to exchange ideas and knowledge, fostering a space for meaningful dialogue and learning. celebsoutfits.com/product/the-underdoggs-snoop-dogg-jacket
bendito007
Nov 14, 2023 15:35
This forum is a fantastic resource! The diversity of perspectives and the depth of discussions here make it an invaluable space for learning and sharing insights. The community's engagement and willingness to help each other create a positive and collaborative atmosphere. Kudos to everyone involved for contributing to such a great forum! celebsleatherjackets.com/products/baseball-team-houston-astros-sequin-jacket.html
aqsak4998
Jun 02, 2023 11:15
I am Jack for the past few days I have wanted to make a resume for applying to another leather jackets firm. The company was cyberpunkjacket.com they were very popular in the USA because of their product quality and a vast variety of leather jackets like cyberpunk jackets, gaming Jackets, and many others.
aqsak4998
Jun 02, 2023 11:14
I am Jack for the past few days I have wanted to make a resume for applying to another leather jackets firm. The company was Cyberpunk Jacket they were very popular in the USA because of their product quality and a vast variety of leather jackets like cyberpunk jackets, gaming Jackets, and many others.
marilynmaxwell294
Apr 29, 2023 08:26
I love your blog! It's helpful and enjoyable, and I appreciate the great stuff you share. Thanks for your hard work and dedication!
Please Visit : ultimatemoviejackets.com
mikerooney179
Feb 02, 2023 08:24
This is really a great website, i suggest you to post articles to attract visitors attention. Your website is really a great source of information
ameliezilber
Jan 31, 2023 06:39
I really amazed to read this blog post. It is so unique and informative red leather jacket men : filmsjackets.com/red-leather-jacket-for-men
famousjacket93
Apr 16, 2021 17:49
Wes Bentley Grey Jacket
famousjacket.com/yellowstone-wes-bentley-grey-jacket
unity_rk3bF5X_BHd6Pg
Mar 19, 2021 13:43
Thanks for updating me with this sort of information, this is a very nice single and provides in-depth data. and I am adopting your blog for further information in the future. yellowstonemerch.com/