在哪里可以找到我的项目proguard.cfg? [英] Where do I find proguard.cfg in my project?

查看:1094
本文介绍了在哪里可以找到我的项目proguard.cfg?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要启用的的ProGuard 我的应用程序和本文档的 ProGuard的它说, proguard.cfg ,在这里我不得不修改一些东西,是自动生成的。但是,如果我看在我的项目文件夹,我只看到了 proguard的-project.txt 文件,但我没有看到的 proguard.cfg 这是我所需要的。

I want to enable the ProGuard for my application and in this documentation ProGuard it says that the proguard.cfg, where I have to modify something, is automatically generated. But if I look in my project folder I only see a proguard-project.txt file but I dont see the proguard.cfg which I need.

我怎样才能得到这个proguard.cfg?或者是我做错了吗?

How can I get this proguard.cfg? Or was I'm doing wrong?

请我的GUID此文件。

Please guid me to this file.

推荐答案

该文档是稍有不准确的。生成的文件是 proguard的-project.txt ,将在你的项目的根目录。

The documentation is slightly inaccurate. The generated file is proguard-project.txt and will be in the root directory of your project.

要启用的Proguard ,则需要忽略<$ C $的不修改警告C> project.properties 并取消对以下行:

To enable Proguard, you will need to ignore the "do not modify" warning in project.properties and uncomment the following line:

     proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

而Android工具链有时会修改 project.properties ,但你的的Proguard 路径将是preserved。

The Android tool chain will sometimes make changes to project.properties, but your Proguard path will be preserved.

这篇关于在哪里可以找到我的项目proguard.cfg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆