eclipse为例

1,project.properties去掉 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 前面的注释

 # 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-22
 proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

2,在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 *;
 #}

最新文章

  1. A2W、W2A、A2T、T2A的使用方法
  2. WCF的Restful和TCP方式调用性能比较
  3. Windows UDP socket recvfrom返回10054错误的解决办法
  4. ambari之hbase数据迁移
  5. paip.Java Annotation注解的作用and 使用
  6. WPF:获取控件内的子项
  7. 图表控件MsChart使用demo
  8. xml写代码
  9. Android Studio rename module Can't rename root module
  10. Android 墙纸设置代码 详细说明
  11. ASP之Eval、Execute、ExecuteGlobal区别分析
  12. HashMap和ConcurrentHashMap流程图
  13. rabbitmq配置文件和站点管理(二)
  14. 找不到 blog.csdn.net 的服务器 DNS 地址
  15. [总结]WEB前端开发常用的CSS/CSS3知识点
  16. Android 简单登陆 涉及 Button CheckBox TextView EditText简单应用
  17. 获取.properties后缀的数据
  18. Satis搭建composer私有库(自定义下载目录)
  19. 【开源GPS追踪】 之 手机端安卓版
  20. 转载]PhpCms V9调用指定栏目子栏目文章的两种方法

热门文章

  1. Shell 总结
  2. 【nodejs】 文件系统(fs) 之读写文件
  3. Msys+Mingw在手 妙用在心!
  4. POJ 1195 2维线段树(树套树实现) 树状数组
  5. Linux - 升级+编译kernel
  6. OC的@property 和 @synthesize id
  7. Flex:在PANEL的title上加一个button[转]
  8. C#的配置文件App.config使用总结 - 转
  9. git撤销删除
  10. Java Servlet Filter(转)