繁体   English   中英

适用于Samsung Gear VR的Unity3D编译APK:无法重新打包资源

[英]Unity3D compiling APK for Samsung Gear VR: Failed to re-package resources

我已逐步设置计算机以使用Unity为Samsung Gear VR进行构建。 我已经多次删除并重新安装了所有SDK和JDK(以及Unity),并按照了六个步骤教程,但仍然出现以下错误:

CommandInvokationFailure:无法重新打包资源。 有关详细信息,请参见控制台。

U:\Users\VR.FIRST\AppData\Local\Android\android-sdk\build-tools\24.0.0\aapt.exe package 
--auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" 
-I "U:/Users/VR.FIRST/AppData/Local/Android/android-sdk\platforms\android-24\android.jar" 
-F bin/resources.ap_ --extra-packages com.oculus.Integration 
-S "U:\Users\VR.FIRST\Desktop\OculusMobileSDK\VrSamples\Native\CinemaSDK\Temp\StagingArea\android-libraries\ovrplugin\res"

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()

http://answers.unity3d.com/questions/653814/android-build-error-win-32-aaptexe-.html

这回答了我的问题。 看来这是一个统一的错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM