gpt4 book ai didi

java - 在Android Studio中运行我的应用程序时出现DuplicatedError

转载 作者:行者123 更新时间:2023-12-03 06:25:45 26 4
gpt4 key购买 nike

我知道我的问题有很多答案,但是没有一个对我有用。有人知道即使我在gradle.build中排除了这两个文件,这为什么会令人发指。

Error:Execution failed for task ':projectPacatioClient:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/joda/time/tz/data/America/Argentina/Tucuman
File1: /Users/as/StudioProjects/Project Pacatio Client2/projectPacatioClient/libs/aws-android-sdk-2.0.4-core.jar
File2: /Users/as/.gradle/caches/modules-2/files-2.1/joda-time/joda-time/2.4/89e9725439adffbbd41c5f5c215c136082b34a7f/joda-time-2.4.jar

这是我的Gradle.build文件。
apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion '21.0.0'

defaultConfig {
applicationId "io.kit.pc"
minSdkVersion 11
targetSdkVersion 21
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
}
}
apply plugin: 'eclipse'
defaultConfig {
multiDexEnabled true
}

}

dependencies {
compile project(':libraryCropper')
compile files('libs/gcm.jar')
//compile 'com.google.android.gms:play-services-gcm:7.8.0'
compile 'com.google.android.gms:play-services:4.4.52'
compile 'com.android.support:support-v4:21.0.0'
compile 'com.google.maps:google-maps-services:0.1.3'
//compile 'com.google.android.gms:play-services-gcm:7.8.0'
compile files('libs/aws-android-sdk-2.0.4-core.jar')
compile files('libs/aws-android-sdk-2.0.4-s3.jar')
compile files('libs/braintree-api-1.3.0-full.jar')
androidTestCompile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/universal-image-loader-1.9.3.jar')
}

最佳答案

我也遇到过同样的问题。
只需从build.gradle文件中删除重复的库即可。与app-> libs进行交叉检查(如果已存在)。

关于java - 在Android Studio中运行我的应用程序时出现DuplicatedError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36524487/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com