无法生成签名的 apk。 Proguard 抛出错误

Not able to generate signed apk. Proguard throwing error

我能够成功生成我的 Android 应用程序的调试 apk。但是在生成签名版本时我收到消息:

警告:有 1 个未解决的对库 class 成员的引用。 您可能需要更新库版本。 (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember) Warning:Exception 正在处理任务 java.io.IOException: 请先更正上述警告。

:app:transformClassesAndResourcesWithProguardForRelease 失败 Error:Execution 任务失败

':app:transformClassesAndResourcesWithProguardForRelease'。

java.io.IOException: Please correct the above warnings first.

以下是我的项目依赖项列表:

dependencies {
    compile 'ch.acra:acra:4.5.0'
    compile project(':androidHorizontalListView')
    compile 'cz.msebera.android:httpclient:4.4.1.1'
    compile 'com.android.support:multidex:1.0.0'
    compile 'com.facebook.android:facebook-android-sdk:4.7.0'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.github.bumptech.glide:glide:3.5.2'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.mikhaellopez:circularimageview:3.0.2'
    compile 'com.android.support:design:24.0.0'
    compile 'com.github.danylovolokh:hashtag-helper:1.1.0'
    compile 'com.android.support:support-v4:24.0.0'
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.+'
    compile 'com.android.support:cardview-v7:24.0.0'
    compile 'com.android.support:recyclerview-v7:24.0.0'
}

methodscount.com 表明,Acra (v 4.5.0) 取决于:

org.json:json:20080701

您有两个选择:

  1. 更新 Acra 至版本 4.7.0

  1. 添加这个依赖项