2
我有一個應用程序,可以在模擬器上正常工作,但在啓動時在手機上崩潰。Android Parse.com - java.util.zip.ZipException:重複項:螺栓/ AggregateException.class
我在說我只是將SDK文件夾的內容提取到libs中,而不是在libs中只有一個解析文件夾,其中包含所有內容?
搖籃文件
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:[email protected]'
compile 'com.nhaarman.listviewanimations:lib-manipulation:[email protected]'
compile 'com.nhaarman.listviewanimations:lib-core-slh:[email protected]'
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
當我使用sudo ./gradlew collegeplanner:依賴關係時,它說找不到命令。當我走./gradlew collegeplanner:依賴它給權限錯誤。這是linux mint終端。我需要安裝其他東西嗎? – ChrisM
請檢查http://stackoverflow.com/questions/17668265/gradlew-permission-denied –
原來是螺栓文件在lib文件夾以及gradle文件中。我接下來的一個教程告訴我,當Parse.com告訴你將它添加到gradle文件時,它應該將SDK的內容提取到lib文件夾中。 – ChrisM