当我尝试在应用程序details are here中添加inmobi时,我正在实现Admob中介,这会导致在gradle依赖项中添加compile 'com.google.ads.mediation:inmobi:6.2.0.0'时出现以下错误
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.ads.mediation:inmobi:6.2.0.0.
Could not resolve com.google.ads.mediation:inmobi:6.2.0.0.
Required by:
project :app
> No cached version of com.google.ads.mediation:inmobi:6.2.0.0 available for offline mode.gradle文件如下所示
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v13:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.google.android.gms:play-services-ads:11.4.2'
compile 'com.google.android.gms:play-services-location:11.4.2'
compile 'com.google.android.gms:play-services-gcm:11.4.2'
compile('com.vungle:publisher-sdk-android:5.3.0@aar') {
transitive=true
}
compile 'com.google.ads.mediation:vungle:5.3.0.0'
compile 'com.inmobi.monetization:inmobi-ads:6.2.0'
compile 'com.google.ads.mediation:inmobi:6.2.0.0'
}也有手动集成link for get the adapter file的选项,但没有相同版本的适配器
有谁能解释一下如何解决这个问题。
发布于 2017-11-02 14:26:09
Preferences Gradle选项卡,如果选中,则取消选中 "Offline work“<>G29

再次检查您的PC是否有活动的internet connectivity
发布于 2017-11-02 21:16:02
InMobi适配器的最低版本是6.2.3:Link
替换gradle依赖项,如下所示:
compile 'com.google.ads.mediation:inmobi:6.2.4.0'
PS: 6.2.4向后兼容6.2.0
发布于 2017-11-10 08:55:52
尝试更新适配器,您可以找到依赖项here
另外,尝试单独添加inmobi,去掉vungle依赖项。
https://stackoverflow.com/questions/47068442
复制相似问题