xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"

1,006 views
Skip to first unread message

Scratch Developer

unread,
Mar 3, 2015, 7:32:11 AM3/3/15
to google-adm...@googlegroups.com
whenever im using xmlns:ads="http://schemas.android.com/apk/res-auto" this im getting this error 
[error: No resource identifier found for attribute 'adSize' in package 'com.scratch.knowledge']
 near this line com.google.android.gms.ads.AdView that 
but whenever im using this  xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"  instead of previous line there us no error but project is not running "unfortunately stopped" error 


INSTEAD OF USING /res-auto
USE THIS /lib/com.google.ads 
I COME TO KNOW ABOUT FROM SOME FORUM DONT KNOW WHETHER IM DOING WRITE OR WRONG

HELP ME DONT KNOW WHAT TO DO ?

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Mar 4, 2015, 1:54:56 PM3/4/15
to google-adm...@googlegroups.com
That namespace is a redirect that tells the IDE to look in the APK for definitions of the "ads" attributes.  It's something that hasn't changed in a long time, so usually when we see errors that mention it, we find that a project has been slightly misconfigured.  Have a look at our quick start for whichever IDE you're using.  


There are sections in both of those tutorials that show the correct steps for including the Mobile Ads SDK into a project.  I believe that if you go through them, you will see this issue go away.

Thanks!

-Andrew
Reply all
Reply to author
Forward
0 new messages