Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Proguard config file [duplicate]

Tags:

android

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

like image 621
Pratik Ranjan Avatar asked Nov 05 '18 19:11

Pratik Ranjan


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

like image 155
Skizo-ozᴉʞS Avatar answered Sep 18 '22 12:09

Skizo-ozᴉʞS