Where is ProGuard -whyareyoukeeping located in Android Studio?

I use ProGuard in the gradle settings of my application in Android Studio. In the Gradle Console window, I can read proGuard warnings. However, when I use whyareyoukeeping , nothing happens there. Did I miss something?

Here is an example of how I tried to use it:

 -whyareyoukeeping class com.google.android.gms.internal.zzel 
+5
source share
3 answers

I figured that if I add the -info flag to the Gradle command-line options, then all the ProGuard output is displayed in the Gradle console.

Android Studio -> Project Settings

+4
source

For write only:

For example, add the following parameter:

-whyareyoukeeping class **.MyApplication

Then open the Gradle Console tab (bottom right) and launch Build> Build SDK. During construction, you will see (or be able to look for them later) how it is printed:

 Shrinking... Explaining why classes and class members are being kept... your.package.name.MyApplication is kept by a directive in the configuration. 

If you do not find these lines, perhaps you should add --info , to Gradle, the console command line options, as indicated by Petrakeas, restart Android Studio and try again.

+2
source

You should check the "generic" in the filters of the "Messages" panel.

enter image description here

0
source

All Articles