首页 > 在打开混淆的情况下,发布APK出现java.io.IOException异常

在打开混淆的情况下,发布APK出现java.io.IOException异常

部分gradle配置:


android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'

    defaultConfig {
        applicationId "com.hit.wi"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 32
        versionName "2.5fixed"
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles 'proguard-rules.pro'
        }
    }
    sourceSets.main.jni.srcDirs = [] //disable ndk-call
//    productFlavors {
//        arm {
//            ndk {
//                abiFilters "armeabi"
//            }
//        }
//    }
}

出错信息:

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.

你的proguard-rules.pro应该是有配置写错了,最近做了哪些修改?

【热门文章】
【热门文章】