Android Parse.com-java.util.zip.ZipException:重复输入:bolts / AggregateException.class

我有一个可以在模拟器上正常运行的应用程序,但在手机启动时崩溃.

我是说我只是将SDK文件夹的内容提取到lib中,而不是在libs中只有一个parse文件夹包含所有内容吗?

摇篮文件

 apply plugin: 'com.android.application'
    apply plugin: 'com.google.gms.google-services'

android {

compileSdkVersion 23
buildToolsversion "21.1.2"
defaultConfig {
    applicationId "com.aaa.bbb"
    minSdkVersion 16
    targetSdkVersion 19
    versionCode 30
    versionName "30"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.release
    }


}
productFlavors {
}
defaultConfig {
    multiDexEnabled true
} }

dependencies {
    compile filetree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile filetree(dir: 'libs', include: ['*.jar'])
    compile 'com.mcxiaoke.volley:library:1.+'
    compile 'com.nhaarman.listviewanimations:lib-core:3.1.0@aar'
    compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0@aar'
    compile 'com.nhaarman.listviewanimations:lib-core-slh:3.1.0@aar'
    compile 'com.nononsenseapps:filepicker:+'
    compile 'io.socket:socket.io-client:0.2.1'
    compile 'com.google.android.gms:play-services:7.8.0'
    compile 'com.android.support:appcompat-v7:19.+'
    compile 'com.google.android.gms:play-services-analytics:7.8.0'
    compile 'com.android.support:design:23.+'
    compile 'com.android.support:support-v4:23.+'
    compile 'com.parse.bolts:bolts-android:1.+'
    compile 'com.parse:parse-android:1.+'

}

日志记录

:app:packageAllDebugClassesForMultiDex Failed
Error:Execution Failed for task ':app:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: bolts/AggregateException.class

解决方法:

您的一个库正在使用不同的螺栓库/类,因此有一些重复.请在终端中使用./gradlew yourModuleName:dependencies检查依赖关系树

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...