码迷,mamicode.com
首页 > 其他好文 > 详细

混淆(防止反编译)

时间:2015-11-15 16:21:38      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

1、在project.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-17

 

2、若项目有依赖第三方库,jar包的时候,一般的解决方法为在proguard-project.txt添加如下代码:(加在最后面,大括号外面

-dontusemixedcaseclassnames

-dontskipnonpubliclibraryclasses

-verbose

-ignorewarnings

混淆(防止反编译)

标签:

原文地址:http://www.cnblogs.com/Quejamais/p/4966591.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!