Unable to list target platforms. When I try to build to Andriod on Mac

The environment is Unity5.5 and MacOS10.
I can’t build to Andriod and get an error:
89171-snip20170302-2.png

CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details. 
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/AndroidSDK/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

stderr[
Error:Invalid command android
]
stdout[

]
exit code: 64
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()

I have changed my sdk folder and path for several times, but it still said this.
My current setting is:
89170-snip20170302-1.png

hey @Shulin_S and @CoryButler I found an answer here: https://forum.unity3d.com/threads/unity3d-5-5-0fx-unable-to-list-target-platforms-error.446096/

  1. just open https://developer.android.com/studio/index.html

  2. scroll down to the bottom of that page

  3. go to downloads

  4. scroll down to the bottom of that page

  5. find Windows “tools_r25.2.3-windows.zip”
    download and unzip it

  6. remove and replace the folder: tools in your SDK folder (the one that looks like this)
    89341-android-sdk-img.png

  7. Enjoy!

Note that you only have to replace the tools folder shown above, not the whole directory - it’s about a 200mb download only for the tools folder. (The whole SDK directory is 10 gb.)

This does work perfectly with Unity 5.5.3.f1 - the problem arises when you upgrade Android Studio (April 2017). The above fix does work great.

The zip with the tools has been removed from that website. You can still get it here: -

Windows: https://dl.google.com/android/repository/tools_r25.2.3-windows.zip -

MacOSX: https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip -

Linux: https://dl.google.com/android/repository/tools_r25.2.3-linux.zip

@Bigpumkin
I am facing similar error after updating Android SDK VERSION: 3.0.1.0, I have also downloaded and replaced that tool folder mentioned in above comment but the error is still there. following is a snapshot of the error.

please help me, I have already wasted 4-5 hours installing and uninstalling SDKs.

Thank you!
This worked for me at as well, though only when using the link listed by @llauer, the one on the Oracle page didn’t seem to work.
I also had to use the command “chflags nohidden ~/Library” to make the library folder visible in Finder to make the copying easier. (I could have done it in Terminal of course)

Thanks again @Bigpumkin

I got the SDK tools here:

for anyone who needs them.

i love you seriously tnx a lot…

Many thanks, very much helped!!!

Thank you very much for your help! For some reason nothing works with JDK 9 x64. And JDK 9 x86 , was removed from everywhere, I had to download the JDK 8 x86, but it worked out.

Now it just says “Android SDK does not include your Target SDK of 25. Please use the Android SDK installation tool to install your target SDK version.”

I hope this would help you,

i hope this will work, I dont know what they have done in past 2 years but 2 years ago you needed just download that sdk and show it to the unity and you are done…

I use android studio 3.0.1 and Unity 2017.4.0f1. And Unable to list target platform. I tryed everything. It’s not work.