- Home /
Unity Admob Failed to re-package resources
I've got very big problem! I followed this tutorial: https://www.youtube.com/watch?v=q5T98X3EawA Everything is working, ads are visible etc on "empty project", but when I add any my own script for example script to change Text in Canvas I can not build and run and
(I'm using Unity 5.1.2)
I get error:
CommandInvokationFailure: Failed to re-package resources. See the Console for details. D:\AndroidGlowne\build-tools\21.1.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/AndroidGlowne\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.android.gms:com.google.unity:com.google.android.gms.ads:com.google.android.gms:android.support.v4 -S
Answer by Extazik24 · Oct 28, 2016 at 09:49 PM
Had the same problem but i finally fixed it !
step one : delete your admob and google play game plugin !
step two : reimporte google play game plugin first !
step three : reimporte admob plugin but uncheck (android/android manifest) and (libs) !
Done !
what is the libs ?????? my game build, but crash when execute the show banner function
That doesn't work. I get \android-libraries\Google$$anonymous$$obileAdsPlugin' is missing Android$$anonymous$$anifest.xml file.
Answer by jc-drile77 · Mar 03, 2016 at 12:33 AM
Copy google-play-services_lib folder to Plugins/Android, so you don't have to hard code Google Play Service's value. You can find that folder on your RootFolder:\Android\sdk\extras\google\google_play_services\libproject\google-play-services_lib Here you have a guide: https://developers.google.com/admob/android/games#unity Oh and if I can recall, 2.3.0 and 2.3.1 were broken for me and the one working was 2.2.1. But they´ve released 3.0.0 & 3.0.1 so they might work too :) https://github.com/googleads/googleads-mobile-unity/releases
PD: Easy answer, you just have to search a little, it took me 2 clicks :P http://answers.unity3d.com/questions/760989/failed-to-re-package-resources-2.html
Your answer
Follow this Question
Related Questions
dll is not allowed to be included or could not be found" error unity3d for android 8 Answers
Is it possible to register android application in AndroidManifest.xml? 0 Answers
How to alter the Android Manifest to use my ad-displaying activity in Unity? 0 Answers
Using CustomUnityPlayerActivity, which inherits from UnityPlayerActivity, will cause problems. 0 Answers
Editing Android Plugins 0 Answers