7

I need to add -keep class android.support.v7.widget.** { *; } in Proguard config file but I don't know where is Proguard config file located in Android Studio

1
  • 1
    It is called proguard-rules.pro and located at the root folder when you pick Android view for your project in Android Studio
    – Onik
    Nov 5, 2018 at 19:35

1 Answer 1

17

Go to Gradle Scripts and then look for a file called proguard-rules.pro and there you can edit it.

enter image description here

If you are using the Project view you can find it here

enter image description here

From docs

The proguard-rules.pro file is where you can add custom ProGuard rules. By default, this file is located at the root of the module (next to the build.gradle file).

For more information take a look at Shrink your code and resources

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.