Admob-lite与完整版:MobileAdsSettingManagerCreatorImpl

时间:2018-07-31 12:18:21

标签: android admob google-play-services

我的应用使用play-services-ads-15.0.1依赖性,而该依赖性又取决于play-services-ads-lite

但是当应用程序在模拟器上运行时,会出现错误消息:

  

E /广告:此应用使用的是Google Mobile的轻量版   需要安装最新的Google Play服务的Ads SDK,   但是Google Play服务丢失或已过期。

,并且没有加载Admob测试广告。 此警告显示在logcat中:

W/Ads: 
Could not get remote MobileAdsSettingManager.
com.google.android.gms.dynamic.RemoteCreator$RemoteCreatorException: Could not load creator class.
    at com.google.android.gms.dynamic.RemoteCreator.getRemoteCreatorInstance(Unknown Source:51)
    at com.google.android.gms.internal.ads.zzme.zzg(Unknown Source:5)
    at com.google.android.gms.internal.ads.zzjw.zzib(Unknown Source:8)
    at com.google.android.gms.internal.ads.zzjr$zza.zzid(Unknown Source:0)
    at com.google.android.gms.internal.ads.zzjr.zza(Unknown Source:75)
    at com.google.android.gms.internal.ads.zzmb.zza(Unknown Source:32)
    at com.google.android.gms.ads.MobileAds.initialize(Unknown Source:7)
    at com.google.android.gms.ads.MobileAds.initialize(Unknown Source:1)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsSettingManagerCreatorImpl" on path: DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk"],nativeLibraryDirectories=[/system/priv-app/PrebuiltGmsCorePano/lib/x86, /system/fake-libs, /system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk!/lib/x86, /system/lib, /vendor/lib, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    at com.google.android.gms.dynamic.RemoteCreator.getRemoteCreatorInstance(Unknown Source:27)
    ... 27 more

似乎只找到了“ ads-lite” jar,而没有找到“完整版”。

我该如何解决?

编辑:this question似乎与之相关

0 个答案:

没有答案