I’ve just recently began development for the Gear VR on Unity 5, and after creating my scene, which is just a basic room with the cameras, I get the error “Failed to re-package resources”. I tried some of the methods listed in other threads here, but to no avail. Any help would be appreciated. Here’s the error codes:
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\XXX\AppData\Local\Android\sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/XXX/AppData/Local/Android/sdk\platforms\android-21\android.jar" -F bin/resources.ap_ --extra-packages com.oculus.Integration -S "C:\Users\Public\Documents\Unity Projects\New Unity Project\Temp\StagingArea\android-libraries\ovrplugin\res"
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()
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\XXX\AppData\Local\Android\sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/XXX/AppData/Local/Android/sdk\platforms\android-21\android.jar" -F bin/resources.ap_ --extra-packages com.oculus.Integration -S "C:\Users\Public\Documents\Unity Projects\New Unity Project\Temp\StagingArea\android-libraries\ovrplugin\res"
stderr[
]
stdout[
]