[Mintegral mediation] Issue importing Mintegral SDK for Android

1,405 views
Skip to first unread message

Robin S

unread,
Apr 14, 2023, 11:47:12 AM4/14/23
to Google Mobile Ads SDK Developers
Hello,

I'm following this tutorial to add Mintegral as a mediation partner for Android.

As mentioned, I did add the maven repository ('https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea') in my project's global build.gradle and the SDK dependency ('com.google.ads.mediation:mintegral:16.4.21.0') in my app's build.gradle.

But I'm getting the following error when trying to create a release bundle:

----------------------------------------------

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:buildReleasePreBundle'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not find com.mbridge.msdk.oversea:mbbid:16.4.21.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/com/mbridge/msdk/oversea/mbbid/16.4.21/mbbid-16.4.21.pom
       - https://repo.maven.apache.org/maven2/com/mbridge/msdk/oversea/mbbid/16.4.21/mbbid-16.4.21.pom
       - file:/Users/xxx/SideProjects/xxx/front/node_modules/jsc-android/dist/com/mbridge/msdk/oversea/mbbid/16.4.21/mbbid-16.4.21.pom
       - https://dl.google.com/dl/android/maven2/com/mbridge/msdk/oversea/mbbid/16.4.21/mbbid-16.4.21.pom
       - https://www.jitpack.io/com/mbridge/msdk/oversea/mbbid/16.4.21/mbbid-16.4.21.pom
     Required by:
         project :app > com.google.ads.mediation:mintegral:16.4.21.0
   > Could not find com.mbridge.msdk.oversea:reward:16.4.21.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/com/mbridge/msdk/oversea/reward/16.4.21/reward-16.4.21.pom
       - https://repo.maven.apache.org/maven2/com/mbridge/msdk/oversea/reward/16.4.21/reward-16.4.21.pom
       - file:/Users/xxx/SideProjects/xxx/front/node_modules/jsc-android/dist/com/mbridge/msdk/oversea/reward/16.4.21/reward-16.4.21.pom
       - https://dl.google.com/dl/android/maven2/com/mbridge/msdk/oversea/reward/16.4.21/reward-16.4.21.pom
       - https://www.jitpack.io/com/mbridge/msdk/oversea/reward/16.4.21/reward-16.4.21.pom
     Required by:
         project :app > com.google.ads.mediation:mintegral:16.4.21.0
   > Could not find com.mbridge.msdk.oversea:mbnative:16.4.21.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/com/mbridge/msdk/oversea/mbnative/16.4.21/mbnative-16.4.21.pom
       - https://repo.maven.apache.org/maven2/com/mbridge/msdk/oversea/mbnative/16.4.21/mbnative-16.4.21.pom
       - file:/Users/xxx/SideProjects/xxx/front/node_modules/jsc-android/dist/com/mbridge/msdk/oversea/mbnative/16.4.21/mbnative-16.4.21.pom
       - https://dl.google.com/dl/android/maven2/com/mbridge/msdk/oversea/mbnative/16.4.21/mbnative-16.4.21.pom
       - https://www.jitpack.io/com/mbridge/msdk/oversea/mbnative/16.4.21/mbnative-16.4.21.pom
     Required by:
         project :app > com.google.ads.mediation:mintegral:16.4.21.0

----------------------------------------------

Does anyone have successfully imported the Mintegral SDK?

Thanks

dream i

unread,
Apr 16, 2023, 11:28:09 PM4/16/23
to Google Mobile Ads SDK Developers
I meet same error log , try to add maven {
url 'https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea'
}

in app(NOT global ) build.gradle

Mobile Ads SDK Forum Advisor

unread,
Apr 17, 2023, 6:29:40 AM4/17/23
to idre...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for reaching out to us.

For us to properly troubleshoot your issue, kindly provide us the following information below privately:
  • Sample App
  • Steps to replicate
  • App ID
  • SDK Version
  • Complete Stack Trace Error
You can provide the following details via reply privately to author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to


https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002kWE00QAG&entry.80707362=00175066

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2kWE00:ref

Robin S

unread,
Apr 18, 2023, 5:44:40 PM4/18/23
to Google Mobile Ads SDK Developers
Ok I fixed this issue this way:

In fact, I'm using react-native and my global build.gradle file looked like:

buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}

So you have to add the maven dependency in the buildscript section but also create a new section 'allprojects' like this:

allprojects {
repositories {
google()
mavenCentral()
maven {
}
}
}

Hope it will also solve your issue
Reply all
Reply to author
Forward
0 new messages