Android SDK error build

Hi i use unity 5.6 and i made a game for android but when i try to build it, it show me an error!
i have sdk installed and also jdk, i tried to dowload and install it again both but nothing works,
thank you


also console showed me this:
Error:Invalid command android

UnityEditor.HostView:OnGUI()


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/santy/AppData/Local/Android/sdk ools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -


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/santy/AppData/Local/Android/sdk ools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -

Hello,
I have the same issue. Did you find any solution? I have been trying to find answer but nothing found it.
Best regards.

This is a bug in some versions of Unity that do not support some SDK tools versions.
More information can be found here.

Same Issue (Tried to Build for Android 6.0 and 4.4)

I have the same problem but on OS X

i also have the same problem ?
please tell me if you have the answer

Did anyone found the solution?..@santy1997 ,@soundmartell

HELLO, i have the same problem and tried 3 version of unity with 3 version of android and java sdk still stuck.
if anyone found a solution pls write in here.

Hi, at this point I’ve tried everything suggested. Can someone please assist? Recieving the following error:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)