ProGuard的在Android和QUOT没有运行;蚂蚁释放" [英] proguard not running in android "ant release"

查看:134
本文介绍了ProGuard的在Android和QUOT没有运行;蚂蚁释放"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读使用ProGuard的Andr​​oid文档,说:如果我们指定proguard.config财产将运行proguard的
不过,我已指定该属性,以确认我检查这echoproperties但是我的文件不会被模糊处理。
我不知道如果我失去了一些东西。任何帮助是AP preciated。

I read the android documentation for using proguard that says "if we specify proguard.config property it will run proguard " However I have specified this property, to confirm i checked this in echoproperties but still my files are not obfuscated. I am not sure if I am missing something. Any help is appreciated.

谢谢,
马南

推荐答案

有关的ProGuard上android.developer.com的文档是不完整的。您可能还需要设置

The documentation on android.developer.com about proguard is not complete. You may also need to set

android:debuggable="false" 

在AndroidManifest.xml文件

in the AndroidManifest.xml file

我发现我需要的,除了要做到这一点,以在指定的project.properties配置文件

I found that I needed to do this in addition to specifying the config file in project.properties

然后运行ant发布后,它将运行ProGuard的。该手册只说Android的调试不会产生ProGuard的,但它并没有说清楚,你甚至不能有可调试设置为true。

Then after running ant release it will run proguard. The manual only says that android debug will not generate proguard, but it does not make it clear that you cannot even have debuggable set to true.

这篇关于ProGuard的在Android和QUOT没有运行;蚂蚁释放"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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