打包Android报错:Error building Player: CommandInvokationFailure

错误信息输出:

Error building Player: CommandInvokationFailure: Unable to determine the tools version of the Android SDK. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed. See the Console for more details.
D:\Program Files\Java\jdk1.6.0_41\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[
Error: Unknown revision
]
stdout[

]

打开Android的SDK Manager发现image

之后分盘出现错误,D盘部分文件损坏,所以在这儿找到的原因是打包Android所需的文件被损坏,重新安装就可以解决此问题。

你可能感兴趣的:(android)