Android Question admob 2.0

DonManfred

Expert
Licensed User
Longtime User
AdMob v2.00 - Based on Google Play Services. This version requires B4A v3.20.
I gues it should work with your B4A Version.
 
Upvote 0

seby8181

Member
Licensed User
Longtime User
Have you set the targetSdkVersion to 23? Change it to 22 instead.

I changed this, but now i have another error:

main_globals (java line: 578)


java.lang.ExceptionInInitializerError


at com.sebys.flapfish.main._globals(main.java:578)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at com.sebys.flapfish.main.initializeGlobals(main.java:263)
at com.sebys.flapfish.main.afterFirstLayout(main.java:95)
at com.sebys.flapfish.main.access$100(main.java:16)
at com.sebys.flapfish.main$WaitForLayout.run(main.java:76)


at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.ads.AdSize
at anywheresoftware.b4a.admobwrapper.AdViewWrapper.<clinit>(AdViewWrapper.java:37)
... 17 more


it's very strange...
 
Upvote 0
Top