2016-06-25 90 views
1

我不断收到此错误,不知道它的含义。请有人解释一下。Unity Android构建错误 - 无法重新打包资源

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. 
C:\Users\Documents\Android SDK\android-sdk-windows\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Documents/Android SDK/android-sdk-windows\platforms\android-24\android.jar" -F bin/resources.ap_ 
stderr[] 
stdout[] 
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, 
UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) 
UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg) 
UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries) 
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) 
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) 
UnityEditor.HostView:OnGUI() 

谢谢!

+2

请点击这里:http://answers.unity3d.com/questions/834744/building-android-application-failed-re-package-res.html –

+0

迈克尔,感谢您的链接。它解决了这个问题。我将把链接作为解决方案。 – swdon

回答

0

正如Michael Gaskill所建议的那样,发现了这个问题的解决方案here.对我而言,添加version.xml文件正如文章中建议的那样。

相关问题