InMobi mediation sdk crash

545 views
Skip to first unread message

ph1823

unread,
Feb 2, 2023, 6:59:44 AM2/2/23
to Google Mobile Ads SDK Developers
Hello,
When i add inmobi reward my appcrash.
I test in android 8, 10, 11.
Crash error:

java.lang.IncompatibleClassChangeError: The method 'com.google.android.gms.tasks.Task com.google.android.gms.location.FusedLocationProviderClient.getLastLocation()' was expected to be of type virtual but instead was found to be of type interface (declaration of 'com.inmobi.media.jk'

Its due  to inmobi sdk. I have add location permissions, and i have the last version of SDK.
I think the adapter is not update to the new play-services-location version (21.0.1)
It is only on reward ad, i can load banner and intertial without error.

Thank for you help.

Mobile Ads SDK Forum Advisor

unread,
Feb 2, 2023, 4:49:38 PM2/2/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hello,

 

Michael here from Mobile Ads SDK Support team. Thank you for reaching out to us.

 

For us to investigate further on our end, kindly provide the below information:

  • InMobi version you use
  • Sample project where the issue is reproducible
  • Steps to replicate
  • Full stack trace of the crash error on your end

 

You may provide the requested details privately via "Reply To Author" button or with the below process.

 

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=5004Q00002iUyzxQAC&entry.80707362=00165710

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
Michael Angelo
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2iUyzx:ref

ph1823

unread,
Feb 3, 2023, 7:54:38 AM2/3/23
to Google Mobile Ads SDK Developers
Done i have send all :)
If  i disable inmobi in my mediation group that work. But with inmobi application crash :(

Mobile Ads SDK Forum Advisor

unread,
Feb 3, 2023, 2:34:59 PM2/3/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hello,

 

Confirming that we have received the information you sent. However, we cannot extract the app that was in rar file. Would you be able to send this again privately via "Reply To Author" button or with the same process below and make it a zip file instead?

ph1823

unread,
Feb 3, 2023, 2:38:13 PM2/3/23
to Google Mobile Ads SDK Developers
Oh i am sorry for that. I have upload the new archive in zip

Mobile Ads SDK Forum Advisor

unread,
Feb 6, 2023, 8:45:31 AM2/6/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hello ph1823,

 

Can you confirm if you were able to replicate the crash while using the sample app you provided? We were unable to replicate the error you encountered using the sample app you gave (See attached). We will need a screen recording of the replication so we can properly test this on our end and confirm if the sample project is indeed where the crashes happen.

 

Regards,

Google Logo
Zoilo Isagani
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2iUyzx:ref
Recording_mov.html

ph1823

unread,
Feb 6, 2023, 1:19:02 PM2/6/23
to Google Mobile Ads SDK Developers
I dont understand why, but on my example application that work. I have the same code, yesterday this same app crashed. I even tried with the mediation test suite to load an inmobi ad, but it didn't crash. So I put a video of my application available to the public, which crashes on devices, and which crashes on android studio. It's exactly the same code as the application provides as an example to load the videos.

Thank for your help

Mobile Ads SDK Forum Advisor

unread,
Feb 7, 2023, 10:40:08 AM2/7/23
to ssky...@gmail.com, google-adm...@googlegroups.com
Hello,

I'm afraid that we'll need a detailed debug information from a device where it's observed in order to actually make any progress in diagnosing this. The only way for us to investigate further is by project file where the issue is reproducible. Since you mentioned that you weren't able to reproduce the issue now, we suggest to monitor the issue on your end at this point. Feel free to raise it back to us if the crash significantly increases.

ph1823

unread,
Feb 11, 2023, 7:11:08 AM2/11/23
to Google Mobile Ads SDK Developers
Hello
the crash is all the time when users want to load a video. So it's very annoying. I'll see if it doesn't happen again on the app I gave you.
I try to replicate bug in sample app

ph1823

unread,
Feb 11, 2023, 8:44:03 AM2/11/23
to Google Mobile Ads SDK Developers
Re, i have upload new upload when i get the error, i have add all of my dependency and that crash.
So i try to remove all other mediation (except inmobi) and that work.

Can you fix this ? Because i want use other mediation and in mobi.
You have video where i remove dependency and add to prove the bug.

Thank for you help.

Mobile Ads SDK Forum Advisor

unread,
Feb 13, 2023, 3:35:09 AM2/13/23
to ssky...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for responding back.

I've checked your app, but I'm getting a different error "Minimum supported Gradle version is 7.4. Current version is 7.1" on my end. Since you mentioned that the reported issue only triggers when adding multiple Mediation adapter, could you please share to us the list of mediation adapters / dependencies that you're using? Once provided, I'll try to replicate the issue using our sample app.

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2iUyzx:ref

ph1823

unread,
Feb 13, 2023, 8:01:49 AM2/13/23
to Google Mobile Ads SDK Developers
I try with Applovin Adcolony. But in my main app i have Ironsource, Applovin, Adcolony,  tapjoy, Meta.
Idk why you have a gradle error, you Can try update gradle maybe.
I have try with sample vidéo exemple admob (gradle version 4) ans i have upgrade to gradle 7, the version of gradlew doest affect
the bug.

Thank for you help !

Mobile Ads SDK Forum Advisor

unread,
Feb 13, 2023, 2:21:00 PM2/13/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for your response.

 

I've tried again your sample app project, and was able to encounter an error for your implementation in "Wannads". When I tried to comment it, I was able to encounter the crashes that is happening in your provided screen recording when other mediation are enable, but unable to replicate when only inMobi is enable. With that, let me share this to the wider team to further check the crashes from your sample app project provided. We will update you once we have more information on this.

 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2iUyzx:ref

ph1823

unread,
Feb 17, 2023, 7:49:56 AM2/17/23
to Google Mobile Ads SDK Developers
Hello,

Thanks, when do you think this will be fixed?

Regards,
ph1823

Mobile Ads SDK Forum Advisor

unread,
Feb 17, 2023, 1:15:48 PM2/17/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for patiently waiting.

 

We are unable to provide timeline on where this will be fixed. But, rest assured that our team is actively investigating this. We will update you as soon as we have more information on this.

Mobile Ads SDK Forum Advisor

unread,
Feb 20, 2023, 2:28:32 PM2/20/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for patiently waiting.

 

I got an update from our team, and they mentioned that they seen that the "`countDownTimer.cancel()` is called in onPause() method even though the `countDownTimer` is not initialized yet that's why it causes the app to crash.". They also tried your sample app project provided, and added a null checker for the mean time to test the ads, and so far, they haven't encountered any crash while loading and showing the rewarded ads in the app. They also mentioned that they tested them with other networks enabled, and no crash so far on their end.

ph1823

unread,
Feb 21, 2023, 2:50:19 PM2/21/23
to Google Mobile Ads SDK Developers
Hello, thank to your feedback.

I dont use  countDownTimer.cancel() in my main app. But its is in initial example app created by Admob Team.
I have already notnull il all my load function, i dont see where add other notnull
I still have the same error in my main and sample app.

Mobile Ads SDK Forum Advisor

unread,
Feb 22, 2023, 12:33:45 AM2/22/23
to ssky...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for the information you provided. I've forwarded this to the wider team. We will keep you posted for further updates on this.

Regards,
Google Logo
Zoilo Isagani
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2iUyzx:ref

Mobile Ads SDK Forum Advisor

unread,
Feb 23, 2023, 7:18:50 AM2/23/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hello,

We hope you're doing well. The team has an update for the issue you're experiencing. Would you kindly do a test on your end using the Rewarded Video example with the following dependencies if you still experience the crash:
 

  •  implementation 'com.google.android.gms:play-services-ads:21.5.0'
  •  implementation 'com.google.ads.mediation:inmobi:10.1.2.1'

Feel free to update us on the result at any time that's convenient for you.

Regards,
Google Logo
Zoilo Isagani
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2iUyzx:ref

ph1823

unread,
Feb 26, 2023, 10:03:06 AM2/26/23
to Google Mobile Ads SDK Developers
Hello,

I still get the crash

Regards

Mobile Ads SDK Forum Advisor

unread,
Feb 27, 2023, 3:20:00 AM2/27/23
to ssky...@gmail.com, google-adm...@googlegroups.com
Hello,

We hope you are doing well. Upon investigation, the team has found out that the crash is happening in the InMobi SDK. You will have to reach out to their respective support team for further assistance on this.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2iUyzx:ref

ph1823

unread,
Feb 27, 2023, 5:28:53 AM2/27/23
to Google Mobile Ads SDK Developers
Hello,
Yes its on Inmobi, but on Inmobi adaptater.
I try to contact Inmobi, but ni mail or contact methode in Inmobi website
But you dont work in the adaptater?

Mobile Ads SDK Forum Advisor

unread,
Feb 27, 2023, 9:12:15 AM2/27/23
to ssky...@gmail.com, google-adm...@googlegroups.com
Hello,

As much as we want to further assist you on this, our wider team mentioned that you should reach out to the InMobi support team. With that, kindly reach out to their appropriate support/forum for further assistance on this.

ph1823

unread,
Feb 27, 2023, 11:09:08 AM2/27/23
to Google Mobile Ads SDK Developers
All right. But don't you manage the adapters provided by admob?

Mobile Ads SDK Forum Advisor

unread,
Feb 27, 2023, 3:25:10 PM2/27/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hi,

We do manage Mediation adapter, however, if the crashes are specific to the adapter we recommend to reach out to the respective support team. In your concern, for the file "full_error.txt" file that you've provided to us previously, the error message of "The requested banner size: 412x90_as is not supported by InMobi SDK.", is specific to InMobi SDK. In addition to that, our team has found out that the crash is happening in the InMobi SDK and suggested that you reach out to the InMobi support team with regard to this.

Regards,

ph1823

unread,
Mar 2, 2023, 3:54:03 AM3/2/23
to Google Mobile Ads SDK Developers
But it is not the crash. My crash concern  LocationInfo.java - com.inmobi.media.jk.i java.lang.IncompatibleClassChangeError

The requested banner size: 412x90_as is not supported by InMobi SDK." Doest cause crash in my app, its just a warning

ph1823

unread,
Mar 5, 2023, 9:36:07 AM3/5/23
to Google Mobile Ads SDK Developers
I talk about this error exactly:

java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~ObvY3oIiyQJUm8_RFkIKGg==/fr.ph1823.datahosting-48w233OsQj3UI7p1u5UwYQ==/base.apk!classes13.dex)
                                                                                                   
 I dont see inmob sdk but com.google !

Mobile Ads SDK Forum Advisor

unread,
Mar 6, 2023, 4:34:42 AM3/6/23
to ssky...@gmail.com, google-adm...@googlegroups.com
Hello,

I've forwarded your concerns to the wider team. We will update you on any further information on this.

Mobile Ads SDK Forum Advisor

unread,
Mar 17, 2023, 5:13:43 PM3/17/23
to ssky...@gmail.com, google-adm...@googlegroups.com

Hi Ph1823,

I hope you're doing well.

I just want to circle back with regard to your concern for the error "java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~ObvY3oIiyQJUm8_RFkIKGg==/fr.ph1823.datahosting-48w233OsQj3UI7p1u5UwYQ==/base.apk!classes13.dex)" that you're encountering in your end, our team mentioned that as per checking in this log, there is no indication that this is caused by our SDK.

Reply all
Reply to author
Forward
0 new messages