Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Nov 30, 2017 at 01:14 PM by Bunny83 for the following reason:

The question is answered, right answer was accepted

avatar image
67
Question by DjangoJG · Mar 12, 2017 at 06:02 PM · android build

Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.

Windows 10 Unity 5.4.2f2 JDK(I configed it.javac is worked in cmd) C:\Program Files\Java\jdk1.8.0_121 androidSDK :C:\Users\JG\AppData\Local\Android\Sdk

the path in unity - edit-preferences is right. and i really checked it for many times.

I tried use other SDK Platforms(API LEVE 10,19,23),and sdk tools(23.03,24.03,25.02). it is also the same error. I dont konw how to do. This Problem spent me tow days.

------------------------------Error info----------------------------------------------------- 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() -----------------------------------Error info End-----------------------------------------------------

Comment
Comments Locked · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ARaction · Mar 15, 2017 at 03:30 PM 0
Share

Same Problem here!

avatar image Trys10Studios · Oct 21, 2017 at 09:26 AM 0
Share

I had this exact same issue. The resolution below fixed it!

4 Replies

  • Sort: 
avatar image
228
Best Answer

Answer by ARaction · Mar 15, 2017 at 05:24 PM

@DjangoJG

Hi, finally I found a solution:

First I tried installing Android SDK and an older Version of JDK into folders with only three letters in the folder name directly on the desktop. But this was not the solution.

Then I fixed it by downgrading the android sdk tool version. Obviously the most current version (SDK Tools, Revision 25.3.0 (March 2017)) causes the trouble.

This is how you do it:

  1. Go to your Android SDK Folder. (If you did not change the path during Android Studio installation you will find the SDK folder here: C:\Users\YourUsername\AppData\Local\Android\sdk )

  2. Rename the old Android sdk "Tool" folder : [Your Android SDK root]/tools -> toolsXXXX

  3. Download Android SDK Tools, Revision 25.2.5 (January 2017): http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip

  4. Extract that to Android SDK root folder.

  5. In Unity go to Edit>Preferences>External Tools and check again, that the path for Android SDK points to the correct folder. (The correct path is the SDK root folder, not the tools folder which is inside the root folder!)

  6. Build your project.

Worked fine for me!

Here some other guys who found the solution too: http://stackoverflow.com/questions/42538433/not-finding-android-sdk-unity# http://answers.unity3d.com/questions/1320150/unable-to-list-target-platform.html

This stupid version compartibility issue took one day to solve... :-(

Have fun developing! Matt

Comment
Comments Locked · Show 48 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheGreatCabbage · Mar 24, 2017 at 08:29 AM 0
Share

Thanks for helping me out, this worked a treat.

avatar image DjangoJG · Mar 27, 2017 at 09:31 AM 0
Share

oh~ thx a lot~

avatar image bruno-ribeiro · Apr 13, 2017 at 03:24 AM 0
Share

Worked like a charm ;) thank you!

avatar image maidilakbar · Apr 17, 2017 at 03:48 AM 0
Share

Work great on me.. thanks man

avatar image Stewhat · Jun 18, 2017 at 07:41 PM 1
Share

Thank you for the answer, explanation, and links! You cut down the time it took me to fix this. Out of curiosity, where did you find the old tools package? I$$anonymous$$O, The Android site does not make this easy.

Show more comments
avatar image
0

Answer by makemepulse · Mar 16, 2017 at 08:28 PM

@DjangoJG Exact same problem here, there is an issue with the latest version of the Android build tools. I solved it using this post : http://stackoverflow.com/questions/42538433/not-finding-android-sdk-unity#

Comment
Comments Locked · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Boudewijn · Jun 22, 2017 at 08:23 AM 0
Share

Thanks! @makemepulse

avatar image
0

Answer by Leostan · Sep 01, 2017 at 08:24 AM

I met the same "Error Message" Thanks to @DjangoJG I know it is the stupid "tools" fail

so i try the following command and see Exception, The problem depends on your detail exception. For me it happens when I have java7 install while android classes are java 8 later. so upgrade to Java 8

cd D:\Android\sdk\tools android.bat list target Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/s dklib/tool/AvdManagerCli : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Comment
Comments Locked · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by fr0ga · Oct 08, 2017 at 11:45 AM

If it still does not work try to change folder from SDK: "platforms/android-23" to "platforms/android_23"

Comment
Comments Locked · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

146 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Terrain Problem Unity 2017.3.1f1 0 Answers

Package Appears to be Corrupt error on Android,Package appears to be corrupt on android?? 0 Answers

I get an error when I call Application.Quit. 0 Answers

Game doesn't work after adding AdMob 0 Answers

Cached addressable asset bundles' location in Android? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges