android studio - proguard.cfg file is missing

旧时模样 提交于 2019-12-11 02:17:50

问题


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:


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



来源:https://stackoverflow.com/questions/19206078/android-studio-proguard-cfg-file-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!