Wrong minSdkVersion for inMobi adapter

38 views
Skip to first unread message

Gicci

unread,
Sep 15, 2024, 7:24:05 PMSep 15
to Google Mobile Ads SDK Developers
Documentation for the inMobi adapter (https://developers.google.com/admob/android/mediation/inmobi) states that the minSdkVersion is 21, but the 10.7.7.0 release requires minSdkVersion 24.

Mobile Ads SDK Forum Advisor

unread,
Sep 16, 2024, 8:22:02 AMSep 16
to gicc...@gmail.com, google-adm...@googlegroups.com

Hi Gicci,

Thank you for contacting the Mobile Ads SDK support team. 

The requirements in Mobile Ads SDK (Android) stated that Android API level 21 or higher meaning the Android device API level version but not the InMobi SDK version. So both are different, the 21 version refers to the Android device API level version and 10.7.7.0 refers to the Inmobi SDK version

I hope this helps! Let me know if you have additional questions.  

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGD7H:ref" (ADR-00268254)

Thanks,
 
Google Logo Mobile Ads SDK Team


Gicci

unread,
Sep 16, 2024, 5:46:30 PMSep 16
to Google Mobile Ads SDK Developers
Hi,

sorry, maybe I was not clear.

Version 10.7.7.0 of the com.google.ads.mediation:inmobi package requires minSdkVersion version 24, instead of 21. If you look in the code of your library you'll find, in the AndroidManifest.xml file, the following code:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.ads.mediation.inmobi" >
<uses-sdk android:minSdkVersion="24" />
</manifest>

This prevents the library to be used with SDK 21. If I try to compile it with a project where I have minSdkVersion set to 21 I will get the following error:

Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [com.google.ads.mediation:inmobi:10.7.7.0] ...\inmobi-10.7.7.0\AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 24,
or use tools:overrideLibrary="com.google.ads.mediation.inmobi" to force usage (may lead to runtime failures)

With version 1.7.5.0 this issue was not present.

Hope it is clear now.

Mobile Ads SDK Forum Advisor

unread,
Sep 17, 2024, 3:17:34 AMSep 17
to gicc...@gmail.com, google-adm...@googlegroups.com
Hi,

I am able to replicate the issue and raise this concern with the team. One of our teammates will get back to you once we have an update on this.Meanwhile your patience is appreciated.
Reply all
Reply to author
Forward
0 new messages