AdMob

Fox

Active Member
Licensed User
Longtime User
Compiling code. 0.53
Generating R file. 1.09
Compiling generated Java code. Error
B4A line: 132
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip)
javac 1.6.0_25
src\prog.java:356: 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)));
^

whats wrong on this line:

AdView1.Initialize("Ad", "xxxxxxxxxxxxx")
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip)
AdView1.LoadAd

where is the error or is the admob lib corrupted with b4a 1.6
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…