Import the MoPub SDK and adapter

97 views
Skip to first unread message

Aleksandr Krushinskiy

unread,
Jul 30, 2019, 4:42:50 AM7/30/19
to Google Mobile Ads SDK Developers

Integrating MoPub with AdMob Mediation, I am doing this guide. step 3:
https://developers.google.com/admob/android/mediation/mopub

After adding repositories to the build.gradle file (Module: app):

repositories {
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
}

I get the following errors:

ERROR: Unable to resolve dependency for ':app@productionDebug/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[15.0.0, 16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebug/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebug/compileClasspath': Could not resolve com.google.android.gms:play-services-basement:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebug/compileClasspath': Could not resolve com.google.android.gms:play-services-tasks:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[15.0.0, 16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-basement:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebugAndroidTest/compileClasspath': Could not resolve com.google.android.gms:play-services-tasks:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebugUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-messaging:[10.2.1, 12.1.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionDebugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[10.2.1, 12.1.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionRelease/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[15.0.0, 16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionRelease/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionRelease/compileClasspath': Could not resolve com.google.android.gms:play-services-basement:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionRelease/compileClasspath': Could not resolve com.google.android.gms:play-services-tasks:[15.0.1,16.0.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionReleaseUnitTest/compileClasspath': Could not resolve com.google.firebase:firebase-messaging:[10.2.1, 12.1.0).
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@productionReleaseUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[10.2.1, 12.1.0).
Show Details
Affected Modules: app

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 30, 2019, 5:35:47 AM7/30/19
to a.krus...@evrius.com, google-adm...@googlegroups.com
Hi Aleksandr,

Thank you for reaching out to us.

Could you confirm if you also migrated your project to AndroidX (as per this page) after adding the repositories in your app-level build.gradle file? I was able to successfully include the MoPub mediation adapter and compile the sample interstitial project upon doing so.

If the situation persists despite the above, you may send me a copy of your project file (via Reply privately to author) so that I can further investigate the issue.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

ref:_00D1U1174p._5001UEH81h:ref

Aleksandr Krushinskiy

unread,
Jul 30, 2019, 6:28:32 AM7/30/19
to Google Mobile Ads SDK Developers
AndroidX is used in my project

вторник, 30 июля 2019 г., 12:35:47 UTC+3 пользователь mobileadssdkforumadvisor написал:

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 30, 2019, 9:30:37 PM7/30/19
to a.krus...@evrius.com, google-adm...@googlegroups.com
Hi Aleksandr,

Thank you for the additional detail on your concern.

Could you send me a copy of your project file that replicates the issue (via Reply privately to author) so that I can further investigate the issue?

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 31, 2019, 3:41:36 AM7/31/19
to a.krus...@evrius.com, google-adm...@googlegroups.com
Hi Aleksandr,

I'll be needing a copy of the whole project so that I can attempt to replicate the issue on my end, in order to help in my investigations. Don't forget to send via the Reply privately to author option.

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 31, 2019, 4:48:19 AM7/31/19
to a.krus...@evrius.com, google-adm...@googlegroups.com


Hi Aleksandr,

Thank you for providing additional details on your concern.

Upon further investigation, it seems that this is more of a concern in the integration of various third-party SDKs with the AdMob SDK, rather than a concern within the SDK itself. I'm afraid that we do not have any insights to provide with regards to the interactions of the AdMob SDK with other third-party SDKs, and thus, I would recommend that you post your concerns over at StackOverflow (or on the support channels of the relevant third-party entities, if applicable) for further assistance on this matter.



Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team



ref:_00D1U1174p._5001UEH81h:ref
Reply all
Reply to author
Forward
0 new messages