解决方案 »

  1.   

    我试了在配置里
    -keep class android.support.v4.** { *; }   
    -dontwarn android.support.v4.**
    -keep class android.support.v7.** { *; }   
    -dontwarn android.support.v7.**
    这样配置不就是忽略了v4和v7 了么?难道不对?
      

  2.   


    贴下我的配置设置  求大神帮助
    # This is a configuration file for ProGuard.
    # http://proguard.sourceforge.net/index.html#manual/usage.html-dontusemixedcaseclassnames
    -dontskipnonpubliclibraryclasses
    -verbose
    -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* # Optimization is turned off by default. Dex does not like code run
    # through the ProGuard optimize and preverify steps (and performs some
    # of these optimizations on its own).
    -dontoptimize
    # -dontpreverify
    # Note that if you want to enable optimization, you cannot just
    # include optimization flags in your own project configuration file;
    # instead you will need to point to the
    # "proguard-android-optimize.txt" file instead of this one from your
    # project.properties file.-keepattributes *Annotation*
    -keep public class com.google.vending.licensing.ILicensingService
    -keep public class com.android.vending.licensing.ILicensingService# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
    -keepclasseswithmembernames class * {
        native <methods>;
    }# keep setters in Views so that animations can still work.
    # see http://proguard.sourceforge.net/manual/examples.html#beans
    -keepclassmembers public class * extends android.view.View {
       void set*(***);
       *** get*();
    }# We want to keep methods in Activity that could be used in the XML attribute onClick
    -keepclassmembers class * extends android.app.Activity {
       public void *(android.view.View);
    }-keepclassmembers class * extends android.support.v4.app.Fragment {
       *;
    }# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
    -keepclassmembers enum * {
        public static **[] values();
        public static ** valueOf(java.lang.String);
    }-keep class * implements android.os.Parcelable {
      public static final android.os.Parcelable$Creator *;
    }-keepclassmembers class **.R$* {
        public static <fields>;
    }
    -keep class **.R$* {   
        *;   
    }
    # The support library contains references to newer platform versions.
    # Don't warn about those in case this app is linking against an older
    # platform version.  We know about them, and they are safe.
    -dontwarn android.support.**
    -dontwarn android.util.Xml.**
    -dontwarn org.xmlpull.v1.XmlPullParser
    -dontwarn org.xmlpull.v1.XmlSerializer
    -keep class android.support.v4.** { *; }   
    -dontwarn android.support.v4.**
    -keep class android.support.v7.** { *; }   
    -dontwarn android.support.v7.**
    -dontwarn javax.activation.**
    -dontwarn javax.security.**
    -dontwarn java.awt.**
    -libraryjars <java.home>/lib/rt.jar
    -keep class javax.** {*;}
    -keep class com.media.wlgjty.fragment.** {*;}
    -keep class com.sun.** {*;}
    -keep class myjava.** {*;}
    -keep class org.apache.harmony.** {*;}
    -keep public class Mail {*;}        
    -dontshrink
      

  3.   

    重新build也是这样 因为我方法都一样了 所以还是不知道哪儿的问题  头痛ing  谁有好的办法 加我QQ深聊 871416431
      

  4.   

    重新build也是这样 因为我方法都一样了 所以还是不知道哪儿的问题  头痛ing  谁有好的办法 加我QQ深聊 871416431这个问题我也没遇到过,一般遇到build不好的,我会把所有jar包全部删除了,再一个一个添加自己要的jar包
      

  5.   

    重新build也是这样 因为我方法都一样了 所以还是不知道哪儿的问题  头痛ing  谁有好的办法 加我QQ深聊 871416431这个问题我也没遇到过,一般遇到build不好的,我会把所有jar包全部删除了,再一个一个添加自己要的jar包
    你可以加我QQ么 我跟你聊一下  
      

  6.   


    这个是我外界导入的包,不属于第三方jar包吧?
    我怎么取消对它的混淆?求解