App gets crash immediately after opening app - Unity Android

505 views
Skip to first unread message

Nikunj Kareliya

unread,
Jun 23, 2019, 6:05:43 AM6/23/19
to Google Mobile Ads SDK Developers
Hi,

I'm using google admob unity plugin v3.18.0. with Unity 2018.4.0f1

The problem is, app getting crash after opening the app. I made test project for checking admob plugin.
I'm using this script GoogleMobileAdsDemoScript mentioned here:

I noticed that, there isn't issue inside editor. no errors in console and all logs I can see there while playing the scene.
but problem is with Android platform.

I tested on Android device Red mi Y2.
Here is screenshot for logs:

Can you tell where's the problem? Is there something I missed to set up?

After imported the plugin, 
1) I resolved dependencies from Assets/Play Service Resolver
2) I also added test IDs at GoogleMobileAdsSettings located at Assets/Google Mobile Ads/Settings
3) I added GoogleMobileAdsDemoScript on Camera game object then build the scene


Screen Shot 2019-06-23 at 3.18.18 PM.png


Screen Shot 2019-06-23 at 3.18.36 PM.png


Mobile Ads SDK Forum Advisor Prod

unread,
Jun 23, 2019, 10:14:42 PM6/23/19
to nikunj....@gmail.com, google-adm...@googlegroups.com
Hi Nikunj,

Thank you for reaching out to us, and for giving additional details on your concern.

After analyzing the error logs in the screenshots, it seems that your app is looking for a certain file provider activity that is missing from your app's package. That said, could you provide a copy of your sample Unity project (using the Reply privately to author option) so that I can investigate the issue?

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

ref:_00D1U1174p._5001UCZ2D8:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 24, 2019, 11:58:00 PM6/24/19
to nikunj....@gmail.com, google-adm...@googlegroups.com
Hi Nikunj,

Thank you for providing a copy of your sample project in private.

I was able to build (or export) the sample project after setting up the sample ID, using this page as a guide. I was also able to run the built APK and can confirm that I was getting test ads from it. By extension, I could not replicate the error logs that were provided in your previous post.

After re-reading the aforementioned error logs, it seems that you might be using a specific provider that is not included with your project (specifically, com.deadmosquitogames.multipicker.utils.AMPFileProvider). You may try switching to androidx.core.content.FileProvider instead and see if it will work for you.

For further questions on Android providers, you may consult the official Android documentation for more details.
Reply all
Reply to author
Forward
0 new messages