Android的&放大器; Proguard的? [英] Android & Proguard?

查看:101
本文介绍了Android的&放大器; Proguard的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用progurard我的Andr​​oid应用程序。 所述proguardGui接受一个输入,和一个输出,输入需要jar文件。但APK文件Android不包含任何罐子?

I am trying to use progurard with my android applications. The proguardGui accepts an input, and an output, the input requires a jar file. but the APK file for android doesn't contain any jar?

我试图传递apk文件,也是APX内部的DEX文件,但proguard的不接受他们为输入。 ProGuard的只接受罐,耳,战争,拉链所以我如何使用ProGuard的GUI与我的Andr​​oid应用程序?

I tried passing the apk file, and also the dex file inside the apx, but proguard doesn't accept them as an input. proguard only accepts jars, ears, wars, zips so how can i use the proguard gui with my android application?

推荐答案

我详细说明如何在这里做完整的说明:的http://www.androidengineer.com/2010/07/optimizing-obfuscating-and-shrinking.html

I detailed complete instructions on how to do it here: http://www.androidengineer.com/2010/07/optimizing-obfuscating-and-shrinking.html

基本上,你必须先建立一个Ant构建你的Andr​​oid项目,这是比较痛苦的。然后,在Java编译步骤和DEX工序之间ProGuard的Ant目标添加。请记住,ProGuard的仅适用于Java字节code和Android使用的Dalvik JVM它采用.dex字节code,所以这就是为什么会发生这两个步骤之间。

Basically, you have to first set up an Ant build for your Android project, which is relatively painless. Then, you add in the ProGuard Ant target between the Java compilation step and the DEX step. Remember, ProGuard only works on Java bytecode, and Android uses the Dalvik JVM which uses .dex bytecode, so that's why it happens between those two steps.

这篇关于Android的&放大器; Proguard的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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