Unity无法构建到Android

时间:2018-12-19 00:30:01

标签: unity3d

嗨,我在尝试构建到Android时在Unity 2018中遇到此错误

CommandInvokationFailure :无法重新打包资源。 C:\ Android \ android-sdk \ build-tools \ 26.0.1 \ aapt.exe软件包--auto-add-overlay -v -f -m -J“ gen” -M“ AndroidManifest.xml” -S“ res “ -I” C:/ Android / android-sdk \ platforms \ android-27 \ android.jar“ -F bin / resources.ap _

stderr [

] 标准输出[

] 退出代码:-1073741819 UnityEditor.Android.Command.WaitForProgramToRun(UnityEditor.Utils.Program p,UnityEditor.Android.WaitingForProcessToExit等待ForProcessToExit,System.String errorMsg) UnityEditor.Android.Command.Run(System.Diagnostics.ProcessStartInfo psi,UnityEditor.Android.WaitingForProcessToExit等待ForProcessToExit,System.String errorMsg) UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec(System.String命令,System.String args,System.String workingdir,System.String errorMsg) UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources(UnityEditor.Android.PostProcessor.PostProcessorContext上下文) UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute(UnityEditor.Android.PostProcessor.PostProcessorContext上下文) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTask​​s(UnityEditor.Android.PostProcessor.PostProcessorContext上下文) UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)

1 个答案:

答案 0 :(得分:0)

项目包含什么?除了基本的Unity资料外,您还下载了其他软件包吗?

还-您是否安装了Android SDK和JDK?