AdMob error...

Cynikal

Member
Licensed User
Longtime User
So, I followed the instructions and the code from the AdMob Tutorial.


My Error shows:



Compiling code. 0.03
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 17
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip)
javac 1.6.0_25
src\com\cyninc\mp3droid\mainmenu.java:198: cannot access com.google.ads.AdView
class file for com.google.ads.AdView not found
mostCurrent._activity.AddView((android.view.View)(mostCurrent._adview1.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(0)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(0)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(320)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(50)));
^
1 error
 

Cynikal

Member
Licensed User
Longtime User
Got it now, had to add:


<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation"/>

to the XML.

Anyway we can have it so this is automatically done?
 
Upvote 0
Top