使用Proguard构建APK失败

时间:2018-08-31 11:09:24

标签: android proguard android-proguard

当我尝试使用proguard生成单个apk时。我收到以下错误。

Error:13:28:30.899 [ERROR] [system.err] Note: there were 29 duplicate class definitions.
13:28:30.899 [ERROR] [system.err]       (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)

更多详细信息,请参见https://docs.google.com/document/d/1YD75r1vNjRV6_TuGKUD0hqvV90R6tyurcplbmgv1rn0/edit?usp=sharing

这是我对模块的依赖

dependencies {
    //compile fileTree(include: ['*.jar'], dir: 'libs')
    compile fileTree(include: ['*.jar'], dir: 'libs')
    'com.googlecode.json-simple:json-simple:1.1.1'
    compile files('libs/prettytime-4.0.1.Final.jar')
    compile project(':sandriosCamera')
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    compile 'de.hdodenhof:circleimageview:2.1.0'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:recyclerview-v7:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.mobsandgeeks:android-saripaar:2.0.3'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.iangclifton.android:floatlabel:1.0.4'
    compile 'com.intuit.sdp:sdp-android:1.0.3'
    compile 'com.intuit.ssp:ssp-android:1.0.4'
    compile 'com.jakewharton:butterknife:8.5.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
    compile 'com.google.code.gson:gson:2.8.5'
//    compile 'com.squareup.okhttp3:okhttp:3.2.0'
    compile 'com.android.volley:volley:1.1.0'
    compile 'com.github.MorochoRochaDarwin:OneCalendarView:3.1.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.github.bumptech.glide:glide:3.8.0'
    compile 'org.igniterealtime.smack:smack-android:4.2.2'
    compile 'org.igniterealtime.smack:smack-android-extensions:4.2.2'
    compile 'org.igniterealtime.smack:smack-im:4.2.2'
    compile 'org.igniterealtime.smack:smack-tcp:4.2.2'
    compile 'com.vanniktech:emoji-one:0.4.0'
    compile 'me.leolin:ShortcutBadger:1.1.16@aar'
    compile 'com.google.firebase:firebase-messaging:11.0.2'
    compile 'com.google.firebase:firebase-core:11.0.2'
    compile 'com.firebase:firebase-jobdispatcher:0.7.0'
    compile 'org.igniterealtime.smack:smack-experimental:4.2.2'
    compile 'com.tuyenmonkey:mkloader:1.4.0'
    compile 'org.mockito:mockito-core:2.10.0'
    compile 'junit:junit:4.12'
//    testCompile 'junit:junit:4.12'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
    /*Loading Indicator*/
    compile 'com.tuyenmonkey:mkloader:1.4.0'
//    compile 'com.newrelic.agent.android:android-agent:5.14.0'
    compile 'net.zetetic:android-database-sqlcipher:3.5.9@aar'
//    compile 'gun0912.ted:tedpermission:2.1.0'
    compile "com.splitwise:tokenautocomplete:2.0.8@aar"
    compile "com.google.guava:guava:16+"
}

我不太确定如何删除重复文件。任何指导都会很棒。

0 个答案:

没有答案
相关问题