• Unity
  • Services
  • Made with Unity
  • Learn
  • 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
  • Forums
  • Answers
  • Feedback
  • Issue Tracker
  • Blog
  • Evangelists
  • User Groups

Navigation

  • Home
  • Unity
  • Industries
  • Made with Unity
  • Learn
  • Community
    • Forums
    • Answers
    • Feedback
    • Issue Tracker
    • Blog
    • Evangelists
    • User Groups
  • Get Unity
  • Asset Store

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
14
Question by ExtinctSpecie · Mar 03, 2017 at 06:16 PM · androidsdkplatform

unable to list target platform

http://answers.unity3d.com/questions/1280198/unable-to-list-target-platforms-cant-build-into-an.html

similar to this question above with the exception that i do not have any kind of folder like that

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 (x86)/Java/jdk1.8.0_112\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="C:/Users/sw-user2/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

this was working a day before i entered android studio and i updated some stuff ( i think it was sdk as well) and then this happened i cant run my unity project

Comment
Add comment · Show 7
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 ikust · Mar 06, 2017 at 01:42 PM 1
Share

Did you upgrade Android SDK tools recently? It stopped working for me after updating SDK tools to the latest version. After downgrading back to SDK tools version 25.2.5 build started working again.

avatar image ExtinctSpecie ikust · Mar 07, 2017 at 09:54 AM 0
Share

yes i did the same thing , now works properly not with the latest version of android sdk tho

avatar image ikust ExtinctSpecie · Mar 07, 2017 at 09:59 AM 0
Share

Yeah. My guess is that Google removed some of the tools that current Unity version depends on from the latest version: https://developer.android.com/studio/releases/sdk-tools.html

avatar image molul · Mar 07, 2017 at 10:08 AM 0
Share

Exactly the same problem here :(

avatar image Kerihobo · Mar 11, 2017 at 01:21 AM 0
Share

This worked... except there was one last reason why I still couldn't build...

Don't forget to delete the previous build of your app from your device, if it's still on there and you try to build, it'll complain about some version number differences and refuse to overwrite or something. Basically, just delete your build from device as an added step.

avatar image atomus108 · Mar 16, 2017 at 09:21 AM 0
Share

@molul Worked for me.

avatar image Fattie · May 01, 2017 at 12:05 AM 0
Share

More details on same: http://answers.unity3d.com/answers/1321674/view.html

7 Replies

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

Answer by molul · Mar 07, 2017 at 09:42 AM

Found a solution here: http://stackoverflow.com/questions/42538433/not-finding-android-sdk-unity#

I have same problem.

I fixed by android sdk tool version downgrade.

The steps.

Rename android sdk tool folder : [Your Android SDK root]/tools -> toolsXXXX Download SDK Tools: http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip Extract that to Android SDK root Build your project

It worked for me :)

Comment
Add comment · Show 17 · 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 ikust · Mar 07, 2017 at 10:16 AM 0
Share

Yeah, that's the exact solution I've used :)

avatar image wahaca · Mar 07, 2017 at 03:34 PM 0
Share

Thanks for the solution. :)

I had to update my jdk to 1.8 as well.

avatar image rd3_developer · Mar 10, 2017 at 05:52 PM 1
Share

If i downgrade TOOLS, my APK doesn't install on device Android. I update JDK, wont help too. Unity 5.5.0p4 Android Studio 2.3.0.8 ( SDK from 21 to 25 ) NDK r10e ( for IL2CPP ) JDK 1.8.0_121 or 1.8.0_101

After update Android Studio, everything broken!

avatar image DevGallie · Apr 28, 2017 at 06:21 AM 0
Share

Thanks @molul,

Yesterday I updated all my tools to Unity 5.6.0f3, Android Studio 2.3.1, and JDK 1.8.0_131. Then got the "Unable to ..." error.

I followed your fix using tools_r25.2.5-windows.zip on Windows 10, and then it worked.

Many thanks for sharing this. It saved me a lot of work.

avatar image molul DevGallie · Apr 28, 2017 at 06:43 AM 0
Share

My pleasure :)

avatar image phygitalmadhouse · Apr 28, 2017 at 08:35 AM 0
Share

Same problem here.

I updated Unity 5.5 and Android SDK and all goes crazy.

This solution (downgrade SDK) work like a charm for me and save my day.

Never forget if something works , no updates , lol.

W7 Unity 5.5.2f

Show more comments
avatar image
3

Answer by kosmo7nia · Jun 18, 2017 at 04:34 PM

If you are a MacOS user, you can download here: https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip

Comment
Add comment · 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 FiscusMedia · Jul 08, 2017 at 11:01 PM 0
Share

THANK YOU! This helped fix the problem on Mac, just had to replace the tools folder in the Android SDK with tools_r25.2.5

avatar image
0

Answer by phygitalmadhouse · Apr 28, 2017 at 08:52 AM

Same problem here.

I updated Unity 5.5 and Android SDK and all goes crazy.

This solution (downgrade SDK) work like a charm for me and save my day.

Never forget if something works , no updates , lol.

W7 Unity 5.5.2f

Comment
Add comment · 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 NoseKills · Apr 29, 2017 at 08:56 AM 0
Share

Finally fixed in 5.6.0p3... but don't update unity if everything works now :)

avatar image
0

Answer by magonicolas · May 05, 2017 at 01:23 PM

How can I Solve this in Mac?

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 Vixxd · May 05, 2017 at 04:56 PM 0
Share

I had to downgrade the Android SDK Tools through Android Studio - this fixed it for me on OS X. Alternatively you can try and download the Tools _r25.2.5 revision for Mac

avatar image RobertoFrontado · Aug 23, 2017 at 07:10 PM 0
Share

Do as @kosmo7nia says http://answers.unity3d.com/answers/1366977/view.html

Downloading it from here: https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip

avatar image
0

Answer by schwertfisch · Aug 13, 2017 at 08:33 PM

Thanks to everybody that has contributed to this solution. I work on MacOS. I downloaded: tools_r25.2.5-macosx.zip from the link provided above AND NOT: sdk-tools-darwin-3859397.zip that is found at https://developer.android.com/studio/index.html today (Aug 13, 2017).

Unity should have been providing this solution at the Getting started with Android development page (https://docs.unity3d.com/Manual/android-GettingStarted.html)

Comment
Add comment · 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 Savvas_6 · Feb 06 at 05:05 PM 0
Share

Thank you friend. Im Mac user and you just save my day! You are correct. The Darwin tools not working.

  • 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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.

Follow this Question

Answers Answers and Comments

32 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

Related Questions

Android problem, "no platform found" 3 Answers

No platforms found (Android Build) 3 Answers

Android SDK does not include any platforms! 3 Answers

Build error 2 Answers

How to install android sdk 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges