如何在Eclipse for Android开发中检查/升级使用它的Proguard版本? [英] How can I check/upgrade Proguard version whn using it in Eclipse for Android development?

查看:398
本文介绍了如何在Eclipse for Android开发中检查/升级使用它的Proguard版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于此的文件非常差。我知道ProGuard可以通过在项目的rot目录中手动编辑default.properties来启用。并且所有的设置进入同一个地方的proguard.cfg文件,但我想知道使用哪个版本的ProGuard(我正在使用Eclise Indigo)。我也希望能够在发布时将其升级到最新版本。但是我没有找到任何关于如何做的参考。

解决方案

ProGuard jar位于Android SDK的内部:android -sdk / tools / proguard / lib / proguard.jar



您可以使用



<$ p打印出版本号$ p> java -jar android-sdk / tools / proguard / lib / proguard.jar

(具有正确的路径)。如果需要,您可以使用替换jar (实际上是整个 proguard 子目录) /proguard.sourceforge.net/downloads.htmlrel =noreferrer>下载页面在官方ProGuard网站。


The documentation on this is extremely poor. I understand that ProGuard can be enabled by manually editing "default.properties" in the project's rot directory. And all the settings go into the "proguard.cfg" file in the same place, but I'd like to know which version of ProGuard is being used (I'm using Eclise Indigo). I would also like to be able to upgrade it to the latest versions whenever the are released. But I can't find any reference on how to do it.

解决方案

The ProGuard jar is located inside the Android SDK: android-sdk/tools/proguard/lib/proguard.jar

You can print out its version number with

java -jar android-sdk/tools/proguard/lib/proguard.jar

(with the proper path). If necessary, you can replace the jar (actually, the entire proguard subdirectory) with the latest version from the download page at the official ProGuard site.

这篇关于如何在Eclipse for Android开发中检查/升级使用它的Proguard版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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