Closed mistrypragnesh40 closed 2 years ago
I also have this problem.
The problem is caused by R8 that removes some needed classes.
To solve the error, in the Android project add the file ProGuard.cfg and set its build action as ProguardConfiguration. Inside the empty file add these two lines:
-keep class com.google.android.gms.ads.MobileAdsInitProvider -keep class androidx.work.impl.WorkManagerInitializer
I've tested it with the SampleMTAdmob project and it works fine.
I'm closing the issue now but if you still have problems, feel free to reopen it.
I was still getting crashes on Android devices. Following proguard config fixed my issues: -keep public class com.google.android.gms.ads.* { public ; } -keep public class com.google.ads.* { public ; } -keep class androidx.work.impl.WorkManagerInitializer
Describe the bug After installing MarcTron.Admob 1.6.9, Application crashing on startup.
To Reproduce Steps to reproduce the behavior:
Further info: I am using target framework for compiling is : Android 12.0 (S)
Expected behavior App Should not crash.