Android build failing in the re-package resources
I've been trying to make some android games, but I can't build it for test on my cell phone. The Error message in the console is the following:
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\Users\amaur\Desktop\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/amaur/Desktop/sdk\platforms\android-24\android.jar" -F bin/resources.ap_
stderr[
] stdout[
]
I'm using Unity 5.3.5f1 and the Android Studio for the SDK
Answer by liortal · Sep 20, 2016 at 04:42 AM
See this similar thread: http://answers.unity3d.com/questions/1245197/im-only-getting-this-error-when-i-try-to-compile-f.html#answer-1245451
To quote my answer:
There was an issue with Unity and Android build tools v24.0.0 (on Windows only, i believe). See this similar question on the Unity forums as well: http://forum.unity3d.com/threads/cannot-build-an-apk-file.428534/#post-2770278
The solution is to update your Android SDK installation (using the SDK Manager). you should install a newer version of build tools and the build should run fine.
Your answer
![](https://koobas.hobune.stream/wayback/20220612093129im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Issues with reading XML file from StreamingAssets on Android! 0 Answers
IAPs problems after porting Google Play Store game to Amazon Appstore 0 Answers
Quest 2 Building Issue System.Windows.Forms.dll assembly && OnMouse_ event handlers 0 Answers
Unity3d 5 failed to re-package resources (Android build problem) 1 Answer
Problems with revenue after getting 5000+ impressions 0 Answers