Search Issue Tracker

By Design

Votes

0

Found in

2017.1.1f1

Issue ID

952029

Regression

Yes

[Android][Gradle] AdMob advertisements fail to load with ClassNotFoundException when Minify option is set to Proguard

Android

-

To reproduce:

1. Download and open attached "AndroidAdMob.zip" project.
2. Create a new Keystore.
3. Build and run with Gradle build system selected.

Expected result: After application is loaded advertisment banner appears at the top of the screen.
Actual result: Advertisment banner does not appear after application is loaded and ClassNotFoundException appears in the logs.

Reproduced with: 2017.3.0b3, 2017.2.0f2, 2017.1.1p4, 2017.1.0a2
Not reproduced with: 5.6.3p4, 5.5.4p5
Regression introduced in: 2017.1.0a2 or 2017.1.0a1

Devices under test:

Samsung SM G930F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T880,
Build:samsung/heroltexx/herolte:7.0/NRD90M/G930FXXU1ZPK3:user/release-keys

Samsung SM G800F (Galaxy S5 Mini)*, OS:6.0.1, CPU:armeabi-v7a, GPU:Mali-400 MP, Build:samsung/kminiltexx/kminilte:6.0.1/MMB29K/G800FXXU1CQA1:user/release-keys

Lge LG H815 (G4)*, OS:6.0, CPU:arm64-v8a, GPU:Adreno (TM) 418,
Build:lge/p1_global_com/p1:6.0/MRA58K/1620215065b6f:user/release-keys

Workaround: Set Minify option to none and build the project.

Notes: Could not test on 2017.1.0a1 because Unity installation errors appears.

Comments (1)

  1. Saturn1004

    Jan 01, 2019 14:28

    I ran into this as well. Not a huge deal, since ProGuard isn't exactly required.

    If anyone knows how to set up the "Custom ProGuard" file to exclude the AdMob plugin, if you could share your knowledge here that would probably help several people out.

    Thanks.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.