android - Getting an Error When adding Ads -


so i'm trying add ads program , can see xml

<com.google.ads.adview     xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"     android:id="@+id/adview"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_alignleft="@+id/textview1"     android:layout_alignparentbottom="true"     android:layout_marginbottom="27dp"     ads:loadadoncreate="true"     ads:testdevices="test_emulator, test_device_id"     app:adsize="banner" > </com.google.ads.adview> 

i error

error parsing xml: unbound prefix 

i searched through stackoverflow , on google solution , told me put

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

however have i'm not sure why i'm getting error

this how have use adview.

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"               xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"               android:orientation="vertical"               android:layout_width="fill_parent"               android:layout_height="fill_parent">   <com.google.ads.adview android:id="@+id/adview"                          android:layout_width="wrap_content"                          android:layout_height="wrap_content"                          ads:adunitid="my_ad_unit_id"                          ads:adsize="banner"                          ads:testdevices="test_emulator, test_device_id"                          ads:loadadoncreate="true"/> </linearlayout> 

you can go through official adview tutorial here.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -