I keep getting "Failed to re-package resources" errors when trying to build an Android apk in Unity 5.4.1f1:
CommandInvokationFailure: Failed to re-package resources. /Users/admin/Library/Android/sdk/build-tools/23.0.3/aapt package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "/Users/admin/Library/Android/sdk/platforms/android-23/android.jar" ...
I followed the instructions and integrated the Unity plugins per http://docs.pushwoosh.com/docs/unity-plugin
Exporting the project to Android Studio gives the following errors:
Error:(8, -1) android-apt-compiler: [PushwooshUnityPlugin] /Unity/Android_build/AndroidStudiobuild/PushwooshUnityPlugin/AndroidManifest.xml:8: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
I also get an Unresolved class 'IntentReceiver' a couple lines below in the same AndroidManifest.xml: <receiver android:name="com.pushwoosh.unityplugin.IntentReceiver"/>
I tried deleting the following files (that came with the PushWoosh Unity pacakge) from the Unity Assets/Android/Plugins directory: android-support-v4.jar play-services-base-9.6.1.aar play-services-basement-9.6.1.aar play-services-gcm-9.6.1.aar play-services-iid-9.6.1.aar play-services-location-9.6.1.aar
Unity manages to compile an apk project but then I don't get any push notification in my app, so I think these files are required.
Can someone help? I have wasted 2 days trying to sort this out (I am novice to Android libraries)
Please sign in to leave a comment.