I'm having some issues with Google Play Services and Unity 5.0.4.
The issue occurs when I want to build my build my project, I get the following error
CommandInvokationFailure: Failed to re-package resources.
I've read a lot and tried to fix it, but no solution been working for me.
I've got the latest Google Play serivces (Rev 32), Google Repository (Rev 32) and Android Support Repository (Rev 35).
I've also read that you can't have API 24 installed, so I've uninstalled and removed it completely. I can't find any other solution to my problem.
Whole console log:
CommandInvokationFailure: Failed to re-package resources.
C:Androidandroid-sdkuild-tools23.0.3aapt.exe package
--auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Android/android-sdkplatformsandroid-23android.jar" -F
bin/resources.ap_ --extra-packages
com.google.example.games.mainlibproj stderr[ AndroidManifest.xml:19:
error: Error: No resource found that matches the given name (at
'value' with value '@integer/google_play_services_version'). ]
stdout[ Configurations: (default) v14 v21 xhdpi-v4 Files:
drawableapp_banner.png
Src: (xhdpi-v4) resdrawable-xhdpiapp_banner.png drawableapp_icon.png
Src: () resdrawableapp_icon.png valuesstrings.xml
Src: () resvaluesstrings.xml valuesstyles.xml
Src: () resvaluesstyles.xml
Src: (v14) resvalues-v14styles.xml
Src: (v21) resvalues-v21styles.xml AndroidManifest.xml
Src: () AndroidManifest.xml Resource Dirs: Type drawable
drawableapp_banner.png
Src: (xhdpi-v4) resdrawable-xhdpiapp_banner.png
drawableapp_icon.png
Src: () resdrawableapp_icon.png Type values
valuesstrings.xml
Src: () resvaluesstrings.xml
valuesstyles.xml
Src: () resvaluesstyles.xml
Src: (v14) resvalues-v14styles.xml
Src: (v21) resvalues-v21styles.xml Including resources from package: C:Androidandroid-sdkplatformsandroid-23android.jar
applyFileOverlay for drawable 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: resdrawable-xhdpiapp_banner.png Processing image:
resdrawableapp_icon.png
(processed image resdrawableapp_icon.png: 94% size of source)
(processed image resdrawable-xhdpiapp_banner.png: 93% size of source)
(new resource id app_banner from xhdpi-v4drawableapp_banner.png #generated)
(new resource id app_icon from drawableapp_icon.png #generated) ] 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)
UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources
(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute
(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks
(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…