如何使用ProGuard工具混淆我的项目? [英] How to obfuscate my project using ProGuard tool?

查看:235
本文介绍了如何使用ProGuard工具混淆我的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何混淆使用ProGuard工具的Andr​​oid应用程序。
我从 http://android-sdk.appspot.com读取信息/guide/developing/tool​​s/proguard.html

I am wondering about how to obfuscate the Android application using ProGuard tool. I've read info from http://android-sdk.appspot.com/guide/developing/tools/proguard.html.

但没有运气依然。我设置为启用配置在default.properties文件ProGuard的工具,加入以下行:

But no luck still. I've set to enable configuration for ProGuard tool in default.properties file added following line:

proguard.config = proguard.cfg

proguard.config=proguard.cfg

然后生成该项目。并期待产生的mapping.txt。但不是生成的。

Then build the project. And was looking to generate "mapping.txt". But not generated.

您可以给我建议我在哪里错了?

Can you suggest me where I am wrong ?

先谢谢了。

推荐答案

ProGuard的唯一的集成在Android构建过程了Android 2.2的SDK。您可能需要更新到最新的SDK,然后用更新的Android更新工程项目。

ProGuard is only integrated in the Android build process as of the Android 2.2 SDK. You may have to update to the latest SDK and then update the project with "android update project".

此外,在ProGuard的发布仅适用于构建:蚁发布

Furthermore, ProGuard is only applied in release builds: "ant release".

这篇关于如何使用ProGuard工具混淆我的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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