- Home /
Android Ads Error
i made a android game, without ads, i dont get an error but if i active ads (GoogleMobileAds.unitypackage and (dev tools/extra/google/google_play_services/lib ) i take this error;
D:\Dev\android-sdk\build-tools\22.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/Dev/android-sdk/platforms/android-19\android.jar" -F bin/resources.ap_ --extra-packages com.google.android.gms:com.google.unity -S "C:\Users\Alpasla...\Temp\StagingArea\android-libraries\google-play-services_lib\res"
stderr[
AndroidManifest.xml:4: error: No resource identifier found for attribute 'banner' in package 'android'
AndroidManifest.xml:4: error: No resource identifier found for attribute 'isGame' in package 'android'
AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'banner' with value '@drawable/app_banner').
]
i update the build tools, sdk etc.. but i still take this error.
I did a search on google, but no results were solving my problem
Thanks for your answers...
How are you trying to show the ads/which plugin are you using? Are you using google's unity plugin?
Your error looks like its caused by you not adding the manifest correctly, or not defining some things which google ads requires in the manifest.
Answer by AKComp · Apr 02, 2015 at 06:37 PM
the problem solved, emanating from AndroidManifest.xml
Could you elaborate to help anyone who stumbles on this in future?
Did you just delete the attributes? In that case this is a bad solution.
Answer by Yury-Habets · Apr 01, 2015 at 09:37 AM
Are you using Unity 5? Did it ask for SDK update? Can you please share the editor log?
Here is the solution:
http://answers.unity3d.com/questions/935508/failed-to-re-package-resources-unity-5.html
Your answer
Follow this Question
Related Questions
Making Money with Unity Ads 1 Answer
Admob works on an empty project but not on my actual project 0 Answers
Unrecognized Attribute name MODULE when building .AAB with AdMob 2 Answers
problem with exporting the game to android 0 Answers
how to design a "remove ads" option in android unity game? 1 Answer