This because ProGuard. To safely use ProGuard with Google Mobile Ads, add the following to your ProGuard config:
-keep public class com.google.android.gms.ads.** {
public *;
}
-keep public class com.google.ads.** {
public *;
}
More Related Contents:
- com.android.build.transform.api.TransformException
- After Google Play Service update to version 13 I got an error
- Failed to resolve com.google.android.gms play-services-auth:11.4.0
- Import Google Play Services library in Android Studio
- Error inflating class com.google.ads.AdView
- java.lang.NoClassDefFoundError: com.google.ads.AdView
- Adding Admob to libgdx
- Action requested: Declare your Ad ID permission
- Failed to sign in. Please check your network connection and try again
- java.lang.SecurityException: attempting to read gservices without permission
- I’m creating an android app which saves user’s file like pdf, music, word files, pics, videos, etc
- How can I fix ‘android.os.NetworkOnMainThreadException’?
- Firestore whereEqualTo, orderBy and limit(1) not working
- Android load from URL to Bitmap
- Android/Java — Post simple text to Facebook wall?
- Rxjava Android how to use the Zip operator
- How to change color of hamburger icon in material design navigation drawer
- ‘Source code does not match the bytecode’ when debugging on a device
- Why is accessing TextView of a Fragment inside Activity throwing an error
- How to prevent Gson from expressing integers as floats
- Cordova Could not reserve enough space for 2097152KB object heap
- How to check permission in fragment
- Google Cloud Messaging – messages either received instantly or with long delay
- Firebase Database points to wrong database URL
- GCM canonical id
- How to make my application system
- How to query a web service via POST request in Android?
- Problems with Firestore connections executing threads
- org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Error on some devices – couldn’t find class ‘com.google.android.gms.measurement.internal.zzz’