Failed to re-package resources [other documentation failed]
Trying to build with Android, I get this error:
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Maximilian\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/Maximilian/AppData/Local/Android/sdk\platforms\android-23\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[
]
I started a completely new clean project - same error. So must be a problem in my fundamental setting. I checked the other documentation, and tried the following, which did not work
deleting the AndroidManifest.xml (hinted at in the error message) does not work, it keeps reappearing upon building
setting up environment variables to install directory of JDK
Updated JDK to 1.8.xxxx
I followed a Unity 4 tutorial to set things up, maybe I moved or installed something that confuses Unity 5 now.
Thanks a lot!
EDIT: I set up Unity on a completely clean PC, following Unity 5 tutorials only, and get the same error message
Answer by mvonhoyningen · May 22, 2016 at 03:06 PM
Solved: Problem was Android SDK Tools Rev 24. Downgraded to Rev 23, not it works perfectly fine.
Could you please elaborate on your solution? I'm currently facing the same issue. Although I was able to manually downgrade Android SD$$anonymous$$ Tools to Rev 23, it's still not working. Thank you!
Your answer
![](https://koobas.hobune.stream/wayback/20220612080941im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[Help] Android manifest/permissions and ads 0 Answers
Android Unable to merge android manifest Error 1 Answer
Screen.SleepTimeout stopped working 1 Answer
(Solved) Admob plugin: Failed to re-package resources. 2 Answers
Unable to merge android manifests while integrating Rewarded Videos from Admob 0 Answers