googleads-mobile-unity: AdMob 7.1.0 & AppLovin 6.3.0 -> Crash on Android (Exoplayer)
Environment:
- Unity version: 2020.3.35f1
- Google Mobile Ads Unity plugin version: 7.0.2
- Platform: Android
- Platform OS version: 12
- Mediation ad networks used, and their versions: -> AdColony 2.5.0 -> AppLovin 6.2.1 -> Facebook 3.7.0 -> Unity 3.2.0
- Other SDK : Firebase 9.1.0
- External Dependency Manager: 1.2.171
Problem: -> If you try to watch an ad from AppLovin, it will crash the app
Has anyone faced this issue and found a solution? Thank you!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (3 by maintainers)
Commits related to this issue
- Fix for #2560, #2317, #2282, #2091 - Duplicate class error with some mediation adapters. PiperOrigin-RevId: 514907749 — committed to googleads/googleads-mobile-unity by maddevrelgithubbot a year ago
- Fix for #2560, #2317, #2282, #2091 - Duplicate class error with some mediation adapters. PiperOrigin-RevId: 514907749 — committed to googleads/googleads-mobile-unity by maddevrelgithubbot a year ago
- Fix for #2560, #2317, #2282, #2091 - Duplicate class error with some mediation adapters. PiperOrigin-RevId: 514907749 — committed to googleads/googleads-mobile-unity by maddevrelgithubbot a year ago
- Fix for #2560, #2317, #2282, #2091 - Duplicate class error with some mediation adapters. PiperOrigin-RevId: 515172813 — committed to googleads/googleads-mobile-unity by maddevrelgithubbot a year ago
@Rickard87 We’re not using waterfall ads, only bidding.
I’m also using UnityAds, IronSource and Facebook mediation, but I don’t think it’s relevant here. Just set up the AdMob plugin like usual, make sure it work fine in a build, import all the mediation plugins and the mediation test suite, force resolve, build again. At this point for us, AppLovin ads (bidding) load, but crash the game when opening. If I add the line into the Custom Gradle Properties, force resolve, and build again, AppLovin ads (bidding) open without issues.
This solution does seem to work for us, when viewing AppLovin ads through the mediation test suite. Without it, the ads would load, but trying to view them would crash the game.
I’d still be cool if this was fixed by default in a future version of this plugin.
@dcosmin-97 Thank you! I will try this out tomorrow