:sign0085:ask for help with admob lib

icefairy333

Active Member
Licensed User
Longtime User
Compiling code. 0.13
Compiling layouts code. 0.02
Generating R file. 0.02
Compiling generated Java code. Error
B4A line: 18
Activity.AddView(adv, 0dip, 0dip, 320dip, 50dip) '<b>previously the height was 48dip. Now it is 50dip.
javac 1.7.0
src\ice\apk\main.java:221: 错误: 无法访问AdView
mostCurrent._activity.AddView((android.view.View)(mostCurrent._adv.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)));
^
找不到com.google.ads.AdView的类文件
1 个错误

b4av1.92
admobv1.35
code:
Activity.LoadLayout("main")
adv.Initialize("adv","xxxxx")

Activity.AddView(adv, 0dip, 0dip, 320dip, 50dip) '<b>previously the height was 48dip. Now it is 50dip.
adv.LoadAd 'loads an ad
 
Top