尝试生成签名APK时出现Proguard错误

时间:2016-12-01 17:21:53

标签: android apk proguard android-proguard signed-apk

我正在尝试生成已签名的APK,但我收到以下错误:

    Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: proguard.ParseException: Expecting separator ';' before '(' in line 90 of file '/Users/OSX/Desktop/PROJECT/12345/name/app/build/intermediates/proguard-rules/release/aapt_rules.txt'

我浏览了aapt_rules.txt,这是文件的第90行:

# onClick res/layout/content_main.xml #generated:15
-keepclassmembers class * { *** getBitData (MainActivity)(...); }

以下是gradle中的buildType:

buildTypes {
    release {
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

0 个答案:

没有答案