更改Android的SDK工具后,我无法再构建。我以前遇到过这个问题,并设法通过此修复解决了这个问题:
但是,旧版SDK工具的链接不再存在于Android网站上。我找不到任何地方。
我知道我只需要找到Windows" tools_r25.2.3-windows.zip" ,但它在我可以找到的任何地方的Android档案中都不存在。
有没有人有另一个地方可以使用?
这是我的错误:
CommandInvokationFailure: Unable to list target platforms. Please make sure
the android sdk path is correct. See the Console for more details.
C:/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -
Dcom.android.sdkmanager.toolsdir="C:/AndroidSDK/sdk\tools" -
Dfile.encoding=UTF8 -jar "C:\Program
Files\Unity_5.6\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, UnityEditor.Android.WaitingForProcessToExit
waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()