Ash*_*hok 6 android duplicates android-studio android-multidex
我正在将我的项目集成到android studio中的另一个应用程序,但它显示以下错误,我在google搜索问题,但没有用.
Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2.class
Run Code Online (Sandbox Code Playgroud)
下面是我的应用程序依赖项
configurations { all*.exclude group: 'com.android.support', module: 'support-annotations' }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':waleteros')
compile 'com.android.support:recyclerview-v7:+'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.jakewharton:butterknife:5.1.2'
compile files('src/libs/android_sync_service_library.jar')
compile "com.google.android.gms:play-services:3.1.+"
compile('com.crashlytics.sdk.android:crashlytics:2.2.2@aar') {
transitive = true;
}
Run Code Online (Sandbox Code Playgroud)
这是我的库依赖项
configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }
configurations { all*.exclude group: 'com.android.support', module: 'support-annotations' }
dependencies {
compile project(':ingosdk')
compile 'com.google.code.gson:gson:2.2.4'
compile files('libs/A2iA.Mobility.jar')
compile files('libs/acra-4.5.0.jar')
compile files('libs/bugsense-3.5.jar')
compile files('libs/deviceprint-lib-1.0.0.jar')
compile files('libs/FlurryAnalytics-5.3.0.jar')
compile files('libs/httpmime-4.1.2.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/volley.jar')
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile files('libs/android-support-v13.jar')
}
Run Code Online (Sandbox Code Playgroud)
Gor*_*Ch. 12
如果您的libs文件夹中有android-support-v4.jar,请将其删除!
这解决了我的问题.
即使文件未添加到build.gradle文件中,gradle也会在构建中包含它.
| 归档时间: |
|
| 查看次数: |
18432 次 |
| 最近记录: |