Skip to content

InMobiSdk crashes, if play-services-location is installed #105

@fornewid

Description

@fornewid

Our company's application is using com.inmobi.monetization:inmobi-ads-kotlin:10.6.2.

We recently updated the Google Play Billing library to version 6.2.1.
And com.google.android.gms:play-services-location:19.0.0 is installed by Play Billing library.

After that, InMobiSdk crashes like the following stactraces:

java.lang.IncompatibleClassChangeError: Found class com.google.android.gms.location.FusedLocationProviderClient, but interface was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/internal_app/{our application package}-BumjAcCdfEkBz7mfi7BZbg==/base.apk!classes2.dex)
	at com.inmobi.media.d6.b(LocationInfo.kt:50)
	at com.inmobi.media.zb.h(TokenRequest.kt:42)
	at com.inmobi.sdk.InMobiSdk.getToken(InMobiSdk.kt:21)

But, com.inmobi.monetization:inmobi-ads-kotlin library has no depencency to play-services-location.
So I think, InMobiSdk refer FusedLocationProviderClient using reflection.

So please let us know which version of play-services-location we should use.

Please note that the same issue is also registered in the Google AdMob inquiry channel.
https://groups.google.com/g/google-admob-ads-sdk/c/JUA7N07ZcAM?pli=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions