1

i am implementing Admob mediation in my application details are here when i trying to add inmobi in cause the below error for adding compile 'com.google.ads.mediation:inmobi:6.2.0.0'in gradle dependencies

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 file look like below

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'
}

there is also option for manual integration link for get the adapter file but there is no such adapter with same version

can any one explain how to resolve this.

AskNilesh
  • 67,701
  • 16
  • 123
  • 163

3 Answers3

0
  1. Go to Preferences in Android Studio
  2. Go to Gradle tab and uncheck "Offline work" if it is checked

    Gradle Offline Work

  3. Check if your PC has active internet connectivity
  4. Sync your project again & you are good to go!
Sneh Pandya
  • 8,197
  • 7
  • 35
  • 50
0

The min version of InMobi adapter is 6.2.3 : Link

Replace the gradle dependency to look something like this :

compile 'com.google.ads.mediation:inmobi:6.2.4.0'

PS: 6.2.4 is backward compatible with 6.2.0

0

Try updating the adapter and you can find the dependencies here

Also, try adding inmobi alone and take out vungle dependencies.

Ravi
  • 631
  • 5
  • 15