Unable to list target platforms. Please make sure the android sdk path is correct
我搜索过此错误。许多人建议我降级"工具" android sdk中的文件夹。所以我做了。但它没有用......
所以有人用不同的解决方案去了throgh ????
感谢。
以下是我的完整错误消息
错误:无效的命令android
UnityEditor.HostView:OnGUI()
CommandInvokationFailure:无法列出目标平台。请确保android sdk路径正确。有关详细信息,请参阅控制台。 C:\ Program Files(x86)\ Java \ jdk1.8.0_131 \ bin \ java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir =" C:/ AndroidSDK \ tools" -Dfile.encoding = UTF8 -jar" C:\ Program Files \ Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer / Tools \ sdktools.jar" -
stderr [错误:无效命令android] stdout [
]退出代码: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()
CommandInvokationFailure:无法更新SDK。请手动运行SDK Manager以确保安装了最新的工具集和所需的平台。有关详细信息,请参阅控制台。 C:\ Program Files(x86)\ Java \ jdk1.8.0_131 \ bin \ java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir =" C:/ AndroidSDK \ tools" -Dfile.encoding = UTF8 -jar" C:\ Program Files \ Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer / Tools \ sdktools.jar" android update sdk -a -u -t工具,platform-tool,build-tools-23.0.2
stderr [错误:无效命令android] stdout [
]退出代码: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()
构建Player时出错:CommandInvokationFailure:无法列出目标平台。请确保android sdk路径正确。有关详细信息,请参阅控制台。 C:\ Program Files(x86)\ Java \ jdk1.8.0_131 \ bin \ java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir =" C:/ AndroidSDK \ tools" -Dfile.encoding = UTF8 -jar" C:\ Program Files \ Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer / Tools \ sdktools.jar" -
stderr [错误:无效命令android] stdout [
]退出代码:64