Hi!
After fixing many things today regarding SDKManager, missing libs, DEX issues and so on ....
now I am faced with the follwing, new issue:
I can compile my app without any problems - so far so good,
but while runtime while trying to show my activiy with my normal AdBanner ...
... I get every time this exception:
java.lang.NoSuchMethodError: No virtual method addTestDevice(Ljava/lang/StringLcom/google/android/gms/ads/AdRequest$Builder; in class Lcom/google/android/gms/ads/AdRequest$Builder; or its super classes (declaration of 'com.google.android.gms.ads.AdRequest$Builder' appears in /data/app/de.padlockblue.manager-rlxyQEL7PreeBAQXnaDgBg==/base.apk)
at anywheresoftware.b4a.admobwrapper.AdViewWrapper.LoadAdWithTestDevice(AdViewWrapper.java:152)
at de.padlockblue.manager.masterinput._initbannerobjects(masterinput.java:651)
at de.padlockblue.manager.masterinput$ResumableSub_Activity_Create.resume(masterinput.java:624)
at de.padlockblue.manager.masterinput._activity_create(masterinput.java:416)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at de.padlockblue.manager.masterinput.afterFirstLayout(masterinput.java:110)
at de.padlockblue.manager.masterinput.access$000(masterinput.java:22)
at de.padlockblue.manager.masterinput$WaitForLayout.run(masterinput.java:88)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7830)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1040)
So, I guess there was a replacement of a lib or something like this.
Any idea, what to do in such a case?
I am using this in order to see real AD BANNERS - provided from google - but not to pay with it - because the TESTDEVICE ID is given and inserted in this method as a parameter from B4A log.
Using admob 2:
Using method: LoadWithTestDevice (with my own device ID):
Regards
ARTsoft
After fixing many things today regarding SDKManager, missing libs, DEX issues and so on ....
now I am faced with the follwing, new issue:
I can compile my app without any problems - so far so good,
but while runtime while trying to show my activiy with my normal AdBanner ...
B4X:
Private BannerAd As AdView
... I get every time this exception:
java.lang.NoSuchMethodError: No virtual method addTestDevice(Ljava/lang/StringLcom/google/android/gms/ads/AdRequest$Builder; in class Lcom/google/android/gms/ads/AdRequest$Builder; or its super classes (declaration of 'com.google.android.gms.ads.AdRequest$Builder' appears in /data/app/de.padlockblue.manager-rlxyQEL7PreeBAQXnaDgBg==/base.apk)
at anywheresoftware.b4a.admobwrapper.AdViewWrapper.LoadAdWithTestDevice(AdViewWrapper.java:152)
at de.padlockblue.manager.masterinput._initbannerobjects(masterinput.java:651)
at de.padlockblue.manager.masterinput$ResumableSub_Activity_Create.resume(masterinput.java:624)
at de.padlockblue.manager.masterinput._activity_create(masterinput.java:416)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at de.padlockblue.manager.masterinput.afterFirstLayout(masterinput.java:110)
at de.padlockblue.manager.masterinput.access$000(masterinput.java:22)
at de.padlockblue.manager.masterinput$WaitForLayout.run(masterinput.java:88)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7830)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1040)
So, I guess there was a replacement of a lib or something like this.
Any idea, what to do in such a case?
I am using this in order to see real AD BANNERS - provided from google - but not to pay with it - because the TESTDEVICE ID is given and inserted in this method as a parameter from B4A log.
Using admob 2:
Using method: LoadWithTestDevice (with my own device ID):
Regards
ARTsoft
Last edited: