Android Studio Proguard config file

Viewed 6516

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 Answers

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

Related