Unable to package Android app resources, even when blank app. 100 following.
Everything downloaded in Android SDK, and tried with older builds.
Tried in both Unity 5.2.2f1 and 5.4.0b22.
Got JDK 1.8.0_91.
Environment variables are set up.
It was working originally until I started prepping my original project for Google Play Plugin, now all android builds fail regardless. I've researched the following error for many days now with no solutions from other's posts working for my case, so desperately seeking help myself. Thanks. This is what the console shows when building a blank android project (it does the same in 23.0.3 build tools, but tosses a version error within the stderr[])
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Jacob\android-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/Jacob/android-sdk/platforms/android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.example.games.mainlibproj
stderr[
]
stdout[
]
Thanks.
Hope someone can help me and the 100 following this question! =)
By your error , your build tools is API 24 and jar file is API 23.
I had the same error.For me the problem is with Android SD$$anonymous$$. Uninstalling preview build tools (API 24) solves the problem.
try Uninstall API 24 build tools preview and revert to API 23 build tools ,build again.
then check your APP bundle ID is correct in android manifest in TE$$anonymous$$P folder.