解决方案 »

  1.   

    # 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 *;
    #}
    -ignorewarnings
    -libraryjars libs/android-support-v4.jar
    -libraryjars libs/shell.jar-dontwarn com.a**
    -dontwarn com.b**
    -dontwarn com.c**
    -dontwarn com.shell**
    -keep class com.a** { *; }
    -keep class com.b** { *; }
    -keep class com.c** { *; }
    -keep class com.shell** { *; }这个是混淆文件
      

  2.   

    # 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 *;
    #}
    -ignorewarnings
    -libraryjars libs/android-support-v4.jar
    -libraryjars libs/shell.jar-dontwarn com.a**
    -dontwarn com.b**
    -dontwarn com.c**
    -dontwarn com.shell**
    -keep class com.a** { *; }
    -keep class com.b** { *; }
    -keep class com.c** { *; }
    -keep class com.shell** { *; }这个是混淆文件第三方jar包里面所有的类都已经keep了,可是还是不管用,很纠结的一个问题,网上找了很多,最终还是没有给出这个问题的回答方法
      

  3.   

    楼主问题解决了吗?遇到一样的问题啊,各种办法都试了,还是无法导出apk啊