android studio - proguard.cfg file is missing

2019-07-16 15:58发布

I want to minimize the size of .apk file, so I follow the Android Developer guide (http://developer.android.com/tools/help/proguard.html), but there are some problems I encountered as follows:

I create a new project via Android Studio, but it doesn't generate a proguard.cfg file. And there exists a local. Properties file rather than project. Properties file.

How can I figure out this issue?

1条回答
再贱就再见
2楼-- · 2019-07-16 16:56

In the new version of the ADT, the file generated is not proguard.cfg but proguard-project.txt. Proguard must be activated in the file project.properties. You can check this link: http://tools.android.com/recent/proguardimprovements

查看更多
登录 后发表回答