How to inspect proguard process, so I know what ta

2019-05-18 00:41发布

My release build is stuck on

:android:transformClassesAndResourcesWithProguardForRelease

for 10 minutes. Gradle console does not print anything. How do I make it print what proguard is doing, so I know where the problem could be?

1条回答
Explosion°爆炸
2楼-- · 2019-05-18 01:07

You need to add the following to your proguard configuration file:

-verbose

Additionally, you need to enable info logging for your gradle build via

gradle -i <target>

where target is the actual task your are running (most likely assembleRelease).

Then you will see more output and what ProGuard is currently doing. Based on experience, the optimization step can take a long time, so you might want to reduce the number of optimization passes using:

-optimizationpasses 3
查看更多
登录 后发表回答