【问题标题】:code obfuscation in android with proguardandroid中的代码混淆与proguard
【发布时间】:2015-01-16 05:20:30
【问题描述】:
# 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-18
this is my project.properties file
# 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-project.txt

当我尝试在发布模式下构建 apk 时,我正在启用这样的 proguard,我在 eclipse Juno 中收到错误代码 1。如果我在 android studio 中使用相同的代码,我可以构建发布 apk 。如果我对从 android studio 获得的 apk 进行逆向工程,我可以阅读整个代码,以便我如何混淆代码

【问题讨论】:

    标签: android eclipse


    【解决方案1】:

    要使用 proguard,您只需使用 gradil 脚本启用 proguard。

    打开 gradil 文件并启用 minifiable true 并尝试签署您的应用程序

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多