Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
4
Question by Cekavicius · Dec 05, 2016 at 07:32 AM · build-errorandroid buildandroid-sdk

Unable to list target platforms. (Cant build into Android)

Just as the title says it gives me an error whenever i try to build for Android. Here's the error: alt text

it also gives me this :

Please make sure the android sdk path is correct. See the Console for more details. C:/Program Files (x86)/Java/jdk1.8.0_111\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="C:/Users/Laurynas/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "D:\UNITY!!\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

I DO have SDK and JDK 8 installed , i have linked them in unity (external tools). I've reinstalled SDK about 5 times now. this thing is just killing me...

Im running Unity 5.4.3f1 On windows 8.1.

I cant find the fix ANYWHERE i've been looking for it for about 4 days now. Please help im getting desperate!! :(

error-1.png (6.9 kB)
Comment
Add comment · Show 4
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 elenzil · Dec 05, 2016 at 09:41 PM 2
Share

i would highly recommend avoiding exclamation marks in folder names for anything core like a unity installation. some tools might not deal with them right. ie "D:\UNITY!!\Editor..."

avatar image Cekavicius elenzil · Dec 06, 2016 at 12:38 PM 1
Share

O$$anonymous$$FG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THAN$$anonymous$$ YOU SO $$anonymous$$UCH . You have no idea how fcking grateful i am. I never thought something like that would be the problem!!! THAN$$anonymous$$ YOU!!!!!!

avatar image elenzil Cekavicius · Dec 06, 2016 at 06:10 PM 0
Share

rad! glad that was the problem!

avatar image ishan-sharma2269 · Apr 17, 2017 at 06:05 PM 0
Share

guys plzz help, cannot convert my project to apk. plzz guys i request you, plzz...............

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_102\bin\java.exe -Xmx2048$$anonymous$$ -Dcom.android.sdkmanager.toolsdir="C:/Users/Ad$$anonymous$$/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 error$$anonymous$$sg) UnityEditor.Android.AndroidSD$$anonymous$$Tools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memory$$anonymous$$B, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.AndroidSD$$anonymous$$Tools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memory$$anonymous$$B, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.HostView:OnGUI()

8 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Cekavicius · Dec 06, 2016 at 02:11 PM

Found a fix!! THANKS ELENZIL!!! , My unity was save in a folder named "UNITY!!!!!" , i simply had to delete the exclamation marks and now it works! :)

Comment
Add comment · 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
22

Answer by shrinath-kopare · Mar 24, 2017 at 12:15 PM

Mac unity android sdk path setting

If you have Android Studio installed. The path for SDK is “/Users/username/Library/Android/sdk”.

But sometimes the “Library” folder is hidden. To see the hidden files, follow the link: http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/ Or follow the steps below Open Terminal found in Finder > Applications > Utilities In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES Press return Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.

Once you done this. Open unity->Unity->Preferences->External tools

In that find SDK path option, click browse, then drag the “sdk” folder which you just opened above in Finder…

Done…

If its still giving error then consider below case:

Sometimes Unity won’t recognise Android Studio’s sdk tools and gives error and ask you to again set the path.

To solve this, download separate sdk tools from Google. Link : https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip

Once you download the “tools” folder. Then copy it and replace it in “/Users/username/Library/Android/sdk”.

And try again…

I know this is not written well…but if you are struggling a lot ..if will just give you an correct hint. I struggled a lot for this issue…so wanted to help you all. Thank you…

Comment
Add comment · Show 13 · 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 viciousesque · Mar 30, 2017 at 01:07 AM 0
Share

Thanks! Loading SD$$anonymous$$ Tools from the link you provided totally fixed my problem on $$anonymous$$ac. Was a real head-scratcher until I came across your post. Thanks!

avatar image shrinath-kopare viciousesque · Apr 04, 2017 at 07:49 AM 0
Share

Welcome brother :) glad it helped you

avatar image Hustlion_CI · Apr 11, 2017 at 07:31 AM 0
Share

Thank you! I tired your method, and Unity tells me the SD$$anonymous$$ version does not meet its requirement and it then download a working version into the folder I specified. Anyway, your method of providing a custom path worked!

avatar image shrinath-kopare Hustlion_CI · Apr 13, 2017 at 10:36 AM 0
Share

Welcome brother :)

avatar image kharal · Apr 12, 2017 at 12:16 PM 0
Share

worked like a charm ....thanks

avatar image shrinath-kopare kharal · Apr 13, 2017 at 10:37 AM 0
Share

Welcome...

avatar image Chakor_Studios · Aug 16, 2017 at 01:34 AM 0
Share

Thanks Bro you made my day :)

avatar image shrinath_hb Chakor_Studios · Sep 05, 2017 at 08:06 AM 0
Share

welcome bro

avatar image Rishi_Chitransh · Sep 19, 2017 at 06:19 AM 0
Share

Ohh.. you just saved the day!!! Thanks a ton..

avatar image shrinath_hb Rishi_Chitransh · Sep 19, 2017 at 08:04 AM 0
Share

you are welcome

Show more comments
avatar image
3

Answer by rsodre · Apr 03, 2017 at 11:27 PM

This post helped me to fix the problem: https://forum.unity3d.com/threads/unity3d-5-5-0fx-unable-to-list-target-platforms-error.446096/#post-2977689

Comment
Add comment · Show 2 · 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 alxcancado · Apr 12, 2017 at 01:19 PM 0
Share

Yep, this fixed $$anonymous$$e as well

avatar image Hoorza · May 01, 2017 at 02:52 PM 0
Share

This one works, it is the problem with version of Android SD$$anonymous$$ Tools, just follow the steps in the link. Easy quick fix Thanks rsodre .

avatar image
1

Answer by cakeslice · Dec 05, 2016 at 10:16 PM

Are you sure you followed all the steps in the installation of the SDK?

https://docs.unity3d.com/Manual/android-sdksetup.html

"In step 4 of Installing the SDK, be sure to add at least one Android platform with API level equal to or higher than 9 (Platform 2.3 or greater), the Platform Tools, and the USB drivers if you’re using Windows."

Here's what the paths in External Tools look in my pc:

SDK: C:/Users/MyName/AppData/Local/Android/android-sdk/

Java: C:/Program Files/Java/jdk1.8.0_73

Comment
Add comment · Show 2 · 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 Cekavicius · Dec 06, 2016 at 12:39 PM 1
Share

Yes i have , but i've fixed the problem , my unity was saved in a folder "UNITY!!!" , i delted the Exclmation marks and now it works.

avatar image hawken · Apr 21, 2018 at 08:58 AM 0
Share

this guide is out of date, you need to install Android Studio now and ... it doesn't work

avatar image
1

Answer by jamiahuswalton · Jun 12, 2017 at 08:38 PM

It looks like this was fixed in 5.6.1f1. I have the Android SDK Tools 26.0.2 installed and everything seems to run as expected.

Is this true for anyone else?

Comment
Add comment · Show 2 · 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 guru20 · Jul 03, 2017 at 03:48 PM 0
Share

Was not fixed for me... still getting the above error as OP -- brand new Android SD$$anonymous$$ install, paths seem to be set correctly, and using 5.6.2f1...

avatar image jamiahuswalton · Jul 03, 2017 at 04:06 PM 0
Share

Yes, that is strange. $$anonymous$$aybe try using 5.6.1f1?

  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 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

Related Questions

CommandInvokationFailure: Gradle build failed when build android apk 0 Answers

Android Error building Player: CommandInvokationFailure: Failed to re-package resources 1 Answer

I can not build for android , error :Path is too long exception 1 Answer

Unity is building older version of my game 2 Answers

CommandInvokationFailure: Gradle build failed. 0 Answers


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