java - Android混淆器: How to set up in Eclipse?

标签 java android eclipse proguard

我正在尝试为 Eclipse 中的标准“Hello World”应用程序设置 ProGuard

我已经采取了取消注释 project.properties 行的步骤,但是 Proguard 没有启用。

我的代码有什么问题/我错过了什么?

代码如下所示,请注意,我已将应用程序命名为 Proguard。

项目.properties:

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
#To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-20
android.library.reference.1=../appcompat_v7

proguard-project.txt:

# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

最佳答案

Proguard 仅适用于发布版本 -(已签名 && 未签名)。因此,转到您的 list 并尝试使用导出功能

同时解决您的评论问题,是的,它将被实现,但没有签名..,一旦实现了混淆器,它将显示一个混淆器文件夹,这就是您知道混淆器处于 Activity 状态的方式..

有关混淆器如何工作的更多信息 && 等,check this

关于java - Android混淆器: How to set up in Eclipse?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26776855/

相关文章:

eclipse - 让 Eclipse 用户定期更新插件的最佳方法是什么?

java - eclipse:如何创建小程序?

java - 使用盐散列密码

android - 在 MPAndroidChart 库中,如何在长时将 X 轴标签包装成两行?

android - 如何在另一个 VideoView B 正在播放时预缓冲 VideoView A - Android

android - JSONObject.toString() 将内部 JSONArray 转换为 Android 中的字符串

java - 可以在 Eclipse 中为每个项目指定 Java 警告设置吗?

java - 如何使用 PHP 或 Java 从 HTML 中提取 RDFa?

java - 推荐的字体)用于显示 unicode 字符?

java - 如何在xml中进行这样的布局?安卓