Android Question MoPub mediation with admob setup

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello my friends,
I have tried to integrate MoPub with Mediation unsuccessful. I followed all steps here at this Google Guide but i get stack at "Step 3: Import the MoPub SDK and adapter" and at "Step 4: Additional code required". First question is that there is no standalone SDK but only an .aar file and secondly how to initialize mopub ad unit?
Thank you for your time.
 

yiankos1

Well-Known Member
Licensed User
Longtime User
i get this this unfiltered log:
B4X:
ViewPostImeInputStage ACTION_DOWN
Timeline: Activity_launch_request id:gr.taxabro.DiplomaAytokinitou time:858403
** Activity (main) Pause, UserClosed = false **
performCreate Call secproduct feature valuefalse
performCreate Call debug elastic valuetrue
** Activity (saved) Create, isFirst = false **
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
** Activity (saved) Resume **
sendUserActionEvent() mView == null
Timeline: Activity_idle id: android.os.BinderProxy@2646cb2e time:858818
updateVisibility : ActivityRecord{ed4a52b token=android.os.BinderProxy@1d67995d {gr.taxabro.DiplomaAytokinitou/gr.taxabro.DiplomaAytokinitou.main}} show : false
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Not retrying to fetch app settings
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=C1OSiGOtfW9nGDdfubr23ufAF-cnapgXR74W6kgEAEAgg_eDOKWCtAqkCAAAAAICELkGoAwGqBCpP0MvSjgI48nwoL8c1254ZdgDaKtKJB_Zvg2StVpqurwvzh4NWLldtgr-QBgHABguAB4H4qTCYBwGoB9nLG6gHz8wb0ggJCICBgBAQARgC&num=1&cid=CAASBORohhg&sig=AOD64_3nOcWfb72_536FUVkzy3RwHu2Mdw&adurl=http://example.com
Instantiating mediation adapter: com.mopub.mobileads.dfp.adapters.MoPubAdapter
Server parameters: {"adUnitId":"1ec6245bea56420d9797f66cce23a718","gwhirl_share_location":"1"}
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mopub/common/MoPub;
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.initializeMoPub(MoPubAdapter.java:518)
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.requestBannerAd(MoPubAdapter.java:290)
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):43)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):71)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mopub.common.MoPub" on path: DexPathList[[zip file "/data/app/gr.taxabro.DiplomaAytokinitou-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    ... 18 more
    Suppressed: java.lang.ClassNotFoundException: com.mopub.common.MoPub
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
        ... 19 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Could not request ad from mediation adapter.
android.os.RemoteException
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):43)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):71)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Trying mediation network:
Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-4939954923862155\/8312375530\/cak=no_cache&cadc=wl&caqid=GOtfW4ngDM6lbM2Dn8gK"}
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Not retrying to fetch app settings
Background partial concurrent mark sweep GC freed 63362(4MB) AllocSpace objects, 82(4MB) LOS objects, 31% free, 34MB/50MB, paused 2.471ms total 192.199ms
Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CL1PkGOtfW52cENCfbqK9o4gN-cnapgXR74W6kgEAEAgg_eDOKWCtAqkCAAAAAICELkGoAwGqBCpP0N_mwuqxUwBtLyJ86QBxU8SyQKadU7AT6TQ4e4pg849nn_iLmLnelHWQBgHABguAB4H4qTCYBwGoB9nLG6gHz8wb0ggJCICBgBAQARgC&num=1&cid=CAASBORofTI&sig=AOD64_1w5Gg05QS9_9aGulJ8GW4gShaKNg&adurl=http://example.com
Instantiating mediation adapter: com.mopub.mobileads.dfp.adapters.MoPubAdapter
Server parameters: {"adUnitId":"4349c334e8f84fb2b3106a420b5f7157","gwhirl_share_location":"1"}
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mopub/common/MoPub;
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.initializeMoPub(MoPubAdapter.java:518)
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.requestInterstitialAd(MoPubAdapter.java:433)
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):51)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):59)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mopub.common.MoPub" on path: DexPathList[[zip file "/data/app/gr.taxabro.DiplomaAytokinitou-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    ... 18 more
    Suppressed: java.lang.ClassNotFoundException: com.mopub.common.MoPub
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
        ... 19 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Could not request ad from mediation adapter.
android.os.RemoteException
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):51)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):59)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Trying mediation network:
Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-4939954923862155\/3740056770\/cak=no_cache&cadc=wl&caqid=GOtfW4exD8abbufAplA"}
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Not retrying to fetch app settings
Scheduling ad refresh 60000 milliseconds from now.
Received
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Init 1.3.1
 [] Now uninitialized
Using client-side OMX mux.
[OMX.SEC.aac.dec] Now Loaded
onConfigureComponent mime.c_str() = audio/mp4a-latm
OMXCodec::AudioConfigAdd 0, 0
AudioSystem::setConfigCallback+++
AudioSystem::getOutputChannelCount+++
getOutputChannel() streamType 3, output 2, channel 2
OMXCodec::AudioConfigAdd22 1, 2
ACodec::configureCodec OutCh  2 + 2, Err : 0 ++
OMXCodec::AudioConfigCallback [1], 0, 2
OMXCodec::AudioConfigCallback 1, 2
[OMX.SEC.aac.dec] Now Loaded->Idle
[OMX.SEC.aac.dec] Now Idle->Executing
[OMX.SEC.aac.dec] Now Executing
AudioTrack::set : Exit
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Received
(HTTPLog)-Static: isSBSettingEnabled false
** Activity (saved) Pause, UserClosed = true **
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
** Activity (main) Resume **
Connect: state = Disconnected
Connect: no auto sign-in, FirstAttempt is false
Timeline: Activity_idle id: android.os.BinderProxy@1d67995d time:862694
[ERROR:gl_context_virtual.cc(39)] Trying to make virtual context current without decoder.
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
You should add:
B4X:
#AdditionalJar: MoPub.aar
I don't really know the name of the aar file. Change it as needed.
I have already implemented this:
B4X:
#AdditionalJar: mopub-5.2.0.0.aar
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
According to unfiltered log, now SDK i think is running, but encounters another error:
B4X:
ViewPostImeInputStage ACTION_DOWN
Timeline: Activity_launch_request id:gr.taxabro.DiplomaAytokinitou time:11283476
** Activity (main) Pause, UserClosed = false **
performCreate Call secproduct feature valuefalse
performCreate Call debug elastic valuetrue
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
** Activity (saved) Create, isFirst = true **
** Activity (saved) Resume **
sendUserActionEvent() mView == null
Timeline: Activity_idle id: android.os.BinderProxy@15d52b69 time:11284292
updateVisibility : ActivityRecord{23216e99 token=android.os.BinderProxy@1d67995d {gr.taxabro.DiplomaAytokinitou/gr.taxabro.DiplomaAytokinitou.main}} show : false
Background partial concurrent mark sweep GC freed 68990(3MB) AllocSpace objects, 17(536KB) LOS objects, 32% free, 32MB/48MB, paused 2.044ms total 123.229ms
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Not retrying to fetch app settings
Task exception on worker thread: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.iid.FirebaseInstanceId.getId()' on a null object reference: com.google.android.gms.internal.measurement.zzfc.zzgl(Unknown Source)
Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CaQxFEBRgW_qrDoqA-gax_CP5ydqmBdHvhbqSAQAQCCD94M4pYK0CqQIAAAAAgIQuQagDAaoEKk_Q6DDBxuD2OdNbYsTq2abg0rjsBGjjqrsaQ2cmA4iw7xof3aQQ0fYvHZAGAcAGC4AHgfipMJgHAagH2csbqAfPzBvSCAkIgIGAEBABGAI&num=1&cid=CAASBORoFHs&sig=AOD64_1wlaMXowHVBKxTaNg1qgpyTgxVUA&adurl=http://example.com
Instantiating mediation adapter: com.mopub.mobileads.dfp.adapters.MoPubAdapter
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.mobileads.dfp.adapters.MoPubAdapter$1>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.mobileads.dfp.adapters.MoPubAdapter$1>
Server parameters: {"adUnitId":"1ec6245bea56420d9797f66cce23a718","gwhirl_share_location":"1"}
Initializing MoPub with ad unit: 1ec6245bea56420d9797f66cce23a718
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.SyncRequest$Listener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.SyncRequest$Listener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.PersonalInfoManager$PersonalInfoSyncRequestListener>
Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CoIuaEBRgW_7JDI_wgAfwxY2QBPnJ2qYF0e-FupIBABAIIP3gzilgrQKpAgAAAACAhC5BqAMBqgQqT9DnnBD62cowl4lKHKFwMB7m5yYLsQSx6FfKE9IayPh4fLdwWMVzam9xkAYBwAYLgAeB-KkwmAcBqAfZyxuoB8_MG9IICQiAgYAQEAEYAg&num=1&cid=CAASBORoaCk&sig=AOD64_3VppKA1ivHSuRThVs2WsIK9FHr0Q&adurl=http://example.com
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.PersonalInfoManager$PersonalInfoSyncRequestListener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogRequest$Listener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogRequest$Listener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.network.MoPubRequest>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.network.MoPubRequest>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.SyncRequest>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.SyncRequest>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.SyncRequest$Listener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.SyncRequest$Listener>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.ConsentDialogController>
Rejecting re-init on previously-failed class java.lang.Class<com.mopub.common.privacy.PersonalInfoManager$PersonalInfoSyncRequestListener>
java.lang.NoClassDefFoundError: com.mopub.common.privacy.PersonalInfoManager$PersonalInfoSyncRequestListener
    at com.mopub.common.privacy.PersonalInfoManager.<init>(PersonalInfoManager.java:67)
    at com.mopub.common.MoPub.initializeSdk(MoPub.java:196)
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.initializeMoPub(MoPubAdapter.java:521)
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.requestBannerAd(MoPubAdapter.java:290)
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):43)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):71)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Could not request ad from mediation adapter.
android.os.RemoteException
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):43)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):71)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Trying mediation network:
Instantiating mediation adapter: com.mopub.mobileads.dfp.adapters.MoPubAdapter
Server parameters: {"adUnitId":"4349c334e8f84fb2b3106a420b5f7157","gwhirl_share_location":"1"}
Initializing MoPub with ad unit: 4349c334e8f84fb2b3106a420b5f7157
MoPub SDK is currently initializing.
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mopub/mobileads/MoPubInterstitial;
    at com.mopub.mobileads.dfp.adapters.MoPubAdapter.requestInterstitialAd(MoPubAdapter.java:435)
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):51)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):59)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mopub.mobileads.MoPubInterstitial" on path: DexPathList[[zip file "/data/app/gr.taxabro.DiplomaAytokinitou-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    ... 17 more
    Suppressed: java.lang.ClassNotFoundException: com.mopub.mobileads.MoPubInterstitial
        at java.lang.Class.classForName(Native Method)
        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
        ... 18 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Could not request ad from mediation adapter.
android.os.RemoteException
    at com.google.android.gms.internal.ads.zzyk.zza(Unknown Source)
    at com.google.android.gms.internal.ads.zzxr.dispatchTransaction(Unknown Source)
    at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
    at android.os.Binder.transact(Binder.java:380)
    at nb.b(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):20)
    at com.google.android.gms.ads.internal.mediation.client.g.a(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):51)
    at com.google.android.gms.ads.internal.mediation.f.run(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):59)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_adsdynamite@12874009@12.8.74 (020308-204998136):9)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Trying mediation network:
Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-4939954923862155\/8312375530\/cak=no_cache&cadc=ej&caqid=EBRgW5K-DZaA-gaEwKbwDA"}
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Not retrying to fetch app settings
Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-4939954923862155\/3740056770\/cak=no_cache&cadc=ej&caqid=EBRgW6zWC5rC7gP-uZK4BQ"}
Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Starting ad request.
Use AdRequest.Builder.addTestDevice("E8099BAE4BED623E9BB3917015AD3D4B") to get test ads on this device.
Not retrying to fetch app settings
Scheduling ad refresh 60000 milliseconds from now.
Received ad!
I have added all these aar from link above but still same error:
B4X:
    #AdditionalJar: mopub-5.2.0.0.aar
    #AdditionalJar: mopub-sdk-base-5.2.0.aar
    #AdditionalJar: mopub-sdk-banner-5.2.0.aar
    #AdditionalJar: mopub-sdk-interstitial-5.2.0.aar
    #AdditionalJar: mopub-sdk-5.2.0.aar
    #AdditionalJar: admob-15.0.0.8
 
Last edited:
Upvote 0
Top