Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,599 Members 35,958 Now Online
XDA Developers Android and Mobile Development Forum

AdMob Error while running in Emulator - LogCat Attached

Tip us?
 
coolbud012
Old
#1  
coolbud012's Avatar
Senior Member - OP
Thanks Meter 24
Posts: 202
Join Date: Sep 2012
Location: Bangalore
Default AdMob Error while running in Emulator - LogCat Attached

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"
         />

Aptitude Cracker - An Application for all Competitive Exams and all In One Aptitude Preparation
---------------------------------------------------------------------------------------------------------------------------------
DroidAcid - Get all android tutorials and Micromax CanvasHD A116 guides.
 
Booink
Old
#2  
Junior Member
Thanks Meter 1
Posts: 9
Join Date: Jul 2010
It cannot find the Google Play Services API; don't use the plain AOSP Android image, launch an emulator with the Google APIs one.
 
Crichton333
Old
#3  
Crichton333's Avatar
Senior Member
Thanks Meter 11
Posts: 141
Join Date: Apr 2014
You cant run Admob in an emulator, try it on a real device.
"Smoke me a kipper i'll be back for breakfast." -- Android: 2048 Numbers Mania -- Yutu Aliens Free -- Proud owner: Sony Xperia J
 
rafalniski
Old
#4  
Junior Member
Thanks Meter 2
Posts: 3
Join Date: May 2014
Try to add

Code:
 xmlns:ads="schemas.android.com/apk/res-auto"
at the beggining of your layout.
 
housecricket
Old
#5  
Junior Member
Thanks Meter 1
Posts: 15
Join Date: Nov 2011
please add test-id for this emulator.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes