2016-06-25 89 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文件正如文章中建議的那樣。

相關問題