Basically, trying to update my 5.3 VR Cardboard project to 5.6 beta. Everything went along pretty alright until I actually attempted to build, upon which it fails and gives this error.
CommandInvokationFailure: Failed to re-package resources.
C:\Users\redfive\AppData\Local\Android\android-sdk\build-tools\23.0.2\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “C:/Users/redfive/AppData/Local/Android/android-sdk\platforms\android-25\android.jar” -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.android.vending.billing:com.unity.purchasing.googleplay -S “D:\GitHub\KPROJ10\KPROJ10_Unity\Temp\StagingArea\android-libraries\common\res” -S “D:\GitHub\KPROJ10\KPROJ10_Unity\Temp\StagingArea\android-libraries\GoogleAIDL\res” -S “D:\GitHub\KPROJ10\KPROJ10_Unity\Temp\StagingArea\android-libraries\GooglePlay\res”
stderr[
AndroidManifest.xml:18: error: Error: No resource found that matches the given name (at ‘theme’ with value ’ @ /VrActivityTheme’).
AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at ‘enableVrMode’ with value ’ @anon_76954444 /gvr_vr_mode_component’).
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: C:\Users\redfive\AppData\Local\Android\android-sdk\platforms\android-25\android.jar
applyFileOverlay for drawable
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
trying overlaySet Key=vr_icon_back.png
trying overlaySet Key=vr_icon_front.png
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable-ldpi\app_icon.png
Processing image: res\drawable-mdpi\app_icon.png
Processing image: res\drawable-hdpi\app_icon.png
(processed image res\drawable-ldpi\app_icon.png: 98% size of source)
Processing image: res\drawable-xhdpi\app_icon.png
(processed image res\drawable-mdpi\app_icon.png: 98% size of source)
Processing image: res\drawable-xxhdpi\app_icon.png
(processed image res\drawable-hdpi\app_icon.png: 99% size of source)
Processing image: res\drawable-xxxhdpi\app_icon.png
(processed image res\drawable-xhdpi\app_icon.png: 98% size of source)
Processing image: res\drawable-nodpi\vr_icon_back.png
(processed image res\drawable-nodpi\vr_icon_back.png: 34% size of source)
Processing image: res\drawable-nodpi\vr_icon_front.png
(processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
(processed image res\drawable-xxhdpi\app_icon.png: 98% size of source)
(processed image res\drawable-nodpi\vr_icon_front.png: 94% size of source)
(processed image res\drawable-xxxhdpi\app_icon.png: 98% size of source)
(new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated )
(new resource id app_icon from ldpi-v4\drawable\app_icon.png #generated )
(new resource id app_icon from mdpi-v4\drawable\app_icon.png #generated )
(new resource id app_icon from hdpi-v4\drawable\app_icon.png #generated )
(new resource id app_icon from xhdpi-v4\drawable\app_icon.png #generated )
(new resource id app_icon from xxhdpi-v4\drawable\app_icon.png #generated )
(new resource id app_icon from xxxhdpi-v4\drawable\app_icon.png #generated )
(new resource id vr_icon_back from nodpi-v4\drawable\vr_icon_back.png #generated )
(new resource id vr_icon_front from nodpi-v4\drawable\vr_icon_front.png #generated )
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure)
UnityEditor.HostView:OnGUI()
Any ideas?
Have triple checked my Android SDK path and updated to very latest Android SDK, but still no dice.
Can you please file a bug with the in-editor bug reporter from your project (under Help menu)? That will send us a bug report and attach the project which can be used to debug the issue. If you can make a smaller project that reproduces it, that would be ideal, but any repro project is valuable.
I get this error with a brand new empty project (so uh, I’ve created a bug and attached a blank project). I’ve tried uninstalling and reinstalling various versions of the Android SDK to no effect so far.
Could you post the bug case # here please?
@LeonhardP looks like it’s 863187