I’ve researched this problem a lot, however all the solutions don’t work.
Building my program says I need to setup the android sdk, however I already did that!
In edit/preferences/external tools, I have it correctly linking to the Android SDK. I installed the package on my desktop to make it easier, (installing it to native folders also didn’t work). I tried selecting other folders, however it kept requesting I point it to the sdk folder, so it’s obvious it’s now correctly pointed.
The problem is it STILL keeps saying I haven’t correctly selected the android sdk folder. I have no further ideas how to fix this.
Here’s the console info:
PlayerSettings Validation: Requested build target group (16) doesn’t exist; #define symbols for scripting won’t be added.
UnityEditor.PlayerSettings:SetScriptingDefineSymbolsForGroup(BuildTargetGroup, String)
ICode.FSMEditor.EnableICodeScripting:.cctor() (at Assets/Unitycoding/ICode/Scripts/Editor/EnableICodeScripting.cs:33)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
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/kathyShane/Desktop/sdk\tools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -
stderr[
Error:Invalid command android
]
stdout[
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/kathyShane/Desktop/sdk\tools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -
stderr[
Error:Invalid command android
]
stdout[
]
exit code: 64
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/kathyShane/Desktop/sdk\tools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -
stderr[
Error:Invalid command android
]
stdout[
]
exit code: 64