Android的工作室 - proguard.cfg文件丢失 [英] android studio - proguard.cfg file is missing
问题描述
我希望尽量减少 .apk文件
文件的大小,所以我按照Android开发者指南(的 http://developer.android.com/tools/help/proguard.html ),但有如下我遇到了一些问题:
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:
我创建通过Android Studio中一个新的项目,但它不会产生 proguard.cfg
文件。并且存在本地。属性文件,而不是项目。属性文件。
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? Thanks in advanced!
推荐答案
在ADT的新版本,生成的文件不是 proguard.cfg
,但 proguard的-project.txt
。 Proguard的必须文件 project.properties
中激活。
您可以检查此链接: http://tools.android.com/recent/proguardimprovements
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
这篇关于Android的工作室 - proguard.cfg文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!