I decided to obfuscate the application code, but during the work errors related to the libraries started to appear. I work in Android Studio I collect the project through Gradle. Here is a list of used libraries:

compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:design:25.1.0' compile 'com.google.firebase:firebase-core:9.2.1' compile 'com.google.firebase:firebase-ads:9.2.1' compile 'com.android.support:recyclerview-v7:25.1.0' compile 'com.github.bumptech.glide:glide:3.5.2' compile 'com.android.support:support-v4:25.1.0' compile 'com.android.support:gridlayout-v7:25.1.0' 

What and where should I register so that these libraries are not obfuscated?

    1 answer 1

    There are ready-made rules for popular libraries, for example proguard snippets or AAR proguards .

    In addition, a well-made library usually includes a section with rules for ProGuard, it is worth looking at the available library documentation.
    For example, Firebase is the Startup section of the Optional: Configure ProGuard . These recommendations should be followed first.

    If there are no official recommendations, it remains to google or resolve conflicts yourself.

    It is also worth exploring the manual for the ProGuard tool itself.