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.
source share