tribelei
tribelei

Reputation: 1

R8 -printusage not worked

I use R8 in my project to minify classes and it worked well, now I want to see what classes was removed exactly and from Android offical it said add : -printusage proguard/unused.txt in my proguard file and I did so, but after run task assembleRelease there is neither usage.txt below mapping folder nor unused.txt below proguard which I configed before.

this is what generated below build/intermediates/outputs/mapping/release:

- configuration.txt
- mapping.txt
- resources.txt
- seeds.txt

Is there somebody can help me generating usage.txt from R8, THX...

Upvotes: 0

Views: 247

Answers (1)

sgjesse
sgjesse

Reputation: 4628

The removed items is written by default to app/build/outputs/mapping/release/usage.txt without any need to add -printusage to the configuration file.

If you want to use -printusage then be careful with relative paths. In you case (the additional copy of) the file ends up in app/proguard/usage.txt.

Upvotes: 0

Related Questions