android – What are the ProGuard rules for Firebase?-ThrowExceptions

Exception or error:

What are the ProGuard rules for these dependencies?

compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-ads:10.0.1'
How to solve:

Firebase uses the consumerProguardFiles feature to automatically include the appropriate ProGuard if you’re using Gradle, meaning you don’t need to manually include anything.

If you need to manually apply the proguard rules, you can extract the proguard.txt file from each AAR file.

Leave a Reply

Your email address will not be published. Required fields are marked *