报错一、
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
D:/Program Files/Android/Android Studio/jre\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="D:/SDK\tools" -Dfile.encoding=UTF8 -jar "D:\Program Files\Unity5.6.1\Editor\Data\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, UnityE
报错二、
Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
D:/Program Files/Android/Android Studio/jre\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="D:/SDK\tools" -Dfile.encoding=UTF8 -jar "D:\Program Files\Unity5.6.1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error:Invalid command android
]
stdout[
]
exit code: 64
报错三、
Error:Invalid command android
UnityEditor.HostView:OnGUI()
解决办法 替换 C:\Users\Administrator\AppData\Local\Android\sdk 下面的toos文件夹
替换文件的地址下载
链接:http://pan.baidu.com/s/1eS1TfpC 密码:owow