I’m having a problem with my Android app on Unity. If I want to make a build I get the error “Failed to re-package resources. See the console for details.” My console says this:
Console
CommandInvokationFailure: Failed to re-package resources.
D:\Documenten\Downloads\sdk-tools-windows-3859397 (2)\build-tools\27.0.3\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “D:/Documenten/Downloads/sdk-tools-windows-3859397 (2)\platforms\android-26\android.jar” -F bin/resources.ap_ --extra-packages com.google.example.games.mainlibproj:com.unity3d.ads -S “D:\Documenten\Documents\Pancake Jumper\Temp\StagingArea\android-libraries\unity-ads\res”
stderr[
AndroidManifest.xml:23: error: Error: No resource found that matches the given name (at ‘value’ with value ’ @Integer /google_play_services_version’).
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: D:\Documenten\Downloads\sdk-tools-windows-3859397 (2)\platforms\android-26\android.jar
applyFileOverlay for drawable
trying overlaySet Key=app_icon.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 font
applyFileOverlay for mipmap
Processing image: res\drawable-ldpi\app_icon.png
Processing image: res\drawable-mdpi\app_icon.png
Processing image: res\drawable-hdpi\app_icon.png
Processing image: res\drawable-xhdpi\app_icon.png
(processed image res\drawable-ldpi\app_icon.png: 98% size of source)
Processing image: res\drawable-xxhdpi\app_icon.png
(processed image res\drawable-mdpi\app_icon.png: 98% size of source)
Processing image: res\drawable-xxxhdpi\app_icon.png
(processed image res\drawable-hdpi\app_icon.png: 97% size of source)
(processed image res\drawable-xhdpi\app_icon.png: 96% size of source)
(processed image res\drawable-xxhdpi\app_icon.png: 96% size of source)
(processed image res\drawable-xxxhdpi\app_icon.png: 95% size of source)
(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)
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
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)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I’m using Java JDK 1.8.0_152 and
I’m using sdk-tools-windows-3859397
And used Android Studio to install Android 4.1 to Android 8.0 and some SDK Tools
I tried removing Android 8.0 but that didn’t help