I tried sdkbox update from 2.6.01 to the latest 2.7.6.1.
I have Admob, Facebook, Firebase(analytics) plugins used.
All plugins got updated but when I hit the run button in Android Studio, my app runs but Admob is not working I’m getting errors like below:
Rejecting re-init on previously-failed class java.lang.Class<com.sdkbox.plugin.PluginAdMob$7>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/interstitial/InterstitialAdLoadCallback;
And another issue is when I try to build apk I’m getting this errors and not being able to build the apk:
But banner ad is working… And the admob version is upgraded to
‘com.google.android.gms:play-services-ads:19.5.0’
only the interstitial ad are not working.
I got this log in build window:
AGPBI: {"kind":"warning","text":"Type `com.cocos.lib.CocosActivity` was not found, it is required for default or static interface methods desugaring of `void com.sdkbox.plugin.SDKBoxCocosActivity.onCreate(android.os.Bundle)`","sources":[{"file":"/proj.android-studio/app/libs/sdkbox.jar"}],"tool":"D8"}
AGPBI: {"kind":"warning","text":"Type `com.google.android.gms.ads.interstitial.InterstitialAd` was not found, it is required for default or static interface methods desugaring of `com.google.android.gms.ads.interstitial.InterstitialAd com.sdkbox.plugin.PluginAdMob.createInterstitialView(java.lang.String)`","sources":[{"file":"/proj.android-studio/app/libs/PluginAdMob.jar"}],"tool":"D8"}
I downloaded and replaced .jar files manually in libs folder too. But no luck.
Can you help on this?