Skip to content Skip to sidebar Skip to footer

Adview Failed To Instantiate

I want to include an admob banner in my application and I got this weird error. Any help is deeply appreciated. Here is the xml code Copy

And also you have to mention admob in the xmlns in the layout xml

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

In resources you have to declare the admob package like this

<?xml version="1.0" encoding="utf-8"?><resources><declare-styleablename="com.admob.android.ads.AdView"></declare-styleable></resources>

Solution 2:

I had the same problem and I solved it. You just make the right dimensions of admob, it requires 480, 75.

Post a Comment for "Adview Failed To Instantiate"