问题描述
解决方案
你混淆文件发下啊。
貌似是引用重复了。
解决方案二:
嗯好的# Add project specific ProGuard rules here.
By default, the flags in this file are appended to flags specified
in C:UsersAdministratorAppDataLocalAndroidSdk/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.** {*;}
#}