2 suihua1723 suihua1723 于 2016.05.12 09:38 提问

android studio混淆编码是出现以下提示怎么过滤

![![![图片说明](http://img.ask.csdn.net/upload/201605/12/1463017094_280392.png)图片说明](http://img.ask.csdn.net/upload/201605/12/1463017087_168940.png)图片说明](http://img.ask.csdn.net/upload/201605/12/1463017080_881726.png)图片说明

2个回答

f327888576
f327888576   2016.05.12 09:55

你混淆文件发下啊。
貌似是引用重复了。

suihua1723
suihua1723   2016.05.12 11:32

嗯好的# Add project specific ProGuard rules here.

By default, the flags in this file are appended to flags specified

in C:\Users\Administrator\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt

You can edit the include path and order by changing the proguardFiles

directive in build.gradle.

#

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 *;

-keep class cn.laumua.fragment.** { *; }

-keep public class * extends android.app.Fragment
-keep public class * extends android.app.Activity
#butterknife
-keep class butterknife.** { ; }
-dontwarn butterknife.internal.
*
-keep class $$ViewBinder { ; }
-keepclasseswithmembernames class * {
@butterknife.
;
}
-keepclasseswithmembernames class * {
@butterknife.* ;
}
################common###############
-keep class com.jph.android.entity.
{ ; } #实体类不参与混淆
-keep class com.jph.android.view.
* { *; } #自定义控件不参与混淆

################afinal##################
#-libraryjars libs/afinal_0.5_bin.jar
#-keep class net.tsz.afinal.** { ; }
#-keep public class * extends net.tsz.afinal.
*
#-keep public interface net.tsz.afinal.** {*;}
#-dontwarn net.tsz.afinal.**

-dontwarn com.google.gson.**

-dontwarn com.squareup.okhttp.**
-dontwarn com.squareup.okhttp3.**

#不混淆R类
-keep public class com.jph.android.R$*{
public static final int ;
}
-keepclassmembers enum * {
public static *
[] values();
public static ** valueOf(java.lang.String);
}

-dontwarn cn.laumua.fragment.**

-keep public class * extends android.support.v4.app.Fragment

-keep class com.baidu.** { ; }
-keep class vi.com.gdi.bgl.android.
*{*;}
-keep class com.google.gson.**{*;}

We want to keep methods in Activity that could be used in the XML attribute onClick

-keepclassmembers class * extends android.app.Activity {#不混淆Activity中参数类型为View的所有方法
public void *(android.view.View);
}

okio

-dontwarn okio.**
-keep class okio.** { *; }

百度地图

-dontwarn com.baidu.**
-keep class com.baidu.** { *; }

-keep class cn.laumua.fragemnt.** {*;}
#}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!