FORUMS

AdMob Error while running in Emulator - LogCat Attached

216 posts
Thanks Meter: 25
 
Post Reply Subscribe to Thread Email Thread
Hello Frieds,

Today while I tried to integrate Admob in my app...

Im Facing this error while running the app in Emulator.

http://pastebin.com/Tbg06tdR

This is the code that I have put up in my XML.

Code:
<com.google.ads.AdView
        android:id="@+id/adView"
        android:layout_alignParentBottom="true"
        android:layout_below="@+id/gridView"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        ads:adUnitId="a155465208dx522s"
	ads:adSize="BANNER"
        ads:loadAdOnCreate="true"
         />
 
 
19th May 2014, 09:51 PM |#2  
Junior Member
Thanks Meter: 2
 
More
It cannot find the Google Play Services API; don't use the plain AOSP Android image, launch an emulator with the Google APIs one.
24th May 2014, 08:53 AM |#3  
Crichton333's Avatar
Senior Member
Thanks Meter: 13
 
More
You cant run Admob in an emulator, try it on a real device.
29th May 2014, 09:27 PM |#4  
Junior Member
Thanks Meter: 2
 
More
Try to add

Code:
 xmlns:ads="schemas.android.com/apk/res-auto"
at the beggining of your layout.
10th June 2014, 02:37 AM |#5  
Junior Member
Thanks Meter: 1
 
More
please add test-id for this emulator.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes