Ad Mob Problem missing GoogleAdMobAdsSdk.xml

Fox

Active Member
Licensed User
Longtime User
hello i have problem with the ad mob initialisation.. i use the GoogleAdMobAdsSdk.xml file for my basic 4 android libs folder... because in the b4a tutorial is written that the Google Ad Mob Ad Sdk must checked in the refereced libraries and my b4a can't find this SDK. if i run my app the app crashes:

log:

at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4263)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: newsbox.png
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:325)
at android.content.res.AssetManager.open(AssetManager.java:299)
at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:70)
... 29 more
datenbank_activity_create (java line: 322)
java.lang.NoSuchMethodError: com.google.ads.AdRequest.setTesting
at anywheresoftware.b4a.admobwrapper.AdViewWrapper.LoadAd(AdViewWrapper.java:103)
at

so what can be the error the missing xml file?
 

Fox

Active Member
Licensed User
Longtime User
Assuming that you are using Basic4android v1.90+ (or 1.80?) then you only need to add reference AdMob.xml.

As written in the tutorial you should copy AdMob native jar to the libraries folder from the SDK and rename it (see the tutorial).

thanks for your answer erel :) i use 2.20 atm. i have admob. refereced and rename the SDK file... but that's not work... i have worked with the tutorial from here...
 
Upvote 0
Top