After solving the issues to make AdMob reward videos work (thanks @yinjimmy
see topic here: SDKBOX AdMob + Google Play Service) and after rolling the update to the Play Store, I am getting the following crash in some devices:
Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;
at com.google.android.gms.internal.zzcka.<init>(:3)
at com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver.onReceive(:6)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3636)
at android.app.ActivityThread.access$1400(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1878)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7070)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:536)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:928)
I have read that it could be due to a versions mismatch issue, but on my devices is working fine (Xiaomi Android9 and BQ Android6), so I have no idea on how to debug this…
Cocos2dx version 3.16
SDKBOX v1.0.3.1
plugins: 2.5.0.5 (IAP, AdColony, AdMob, Firebase, OneSignal)
buildTools and compileVersion 28
minSdkVersion 23
dependencies:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':libcocos2dx')
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
implementation 'com.crashlytics.sdk.android:crashlytics-ndk:2.0.2'
implementation 'com.android.billingclient:billing:2.0.1'
implementation 'com.google.android.gms:play-services-basement:16.0.1'
implementation 'com.google.android.gms:play-services-ads-base:17.2.0'
implementation 'com.google.android.gms:play-services-ads:17.2.0'
}
Any help will be appreciated, thanks!