gpt4 book ai didi

android-studio - 错误 :Execution failed for task : ransformException

转载 作者:行者123 更新时间:2023-12-03 17:04:47 24 4
gpt4 key购买 nike

我的 gradle Dependency 是这样的,

dependencies {
compile files('libs/Shutterbug-1.0.0.jar')
compile files('libs/VolleyWithJsonArrayRequest.jar')
compile files('libs/android-async-http-1.4.3.jar')
compile files('libs/geonames-1.1.12.jar')
compile files('libs/jdom-1.0.jar')
compile files('libs/kenburnsview-1.0.6.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/multiselectlistpreferencecompat.jar')
compile files('libs/universal-image-loader-1.9.1.jar')
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-ads:8.3.0'
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.google.android.gms:play-services-analytics:8.3.0'
}

但在 android studio 1.5 上运行应用程序时,出现以下错误:

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/analytics/internal/Command$1.class

最佳答案

您很可能在 libs/libGoogleAnalyticsServices.jarcom.google.android.gms:play-services-analytics:8.3.0 依赖项之间存在重复项。

如果您尝试使用最新的 SDK (v4),请注释/删除 libGoogleAnalyticsServices.jar 行并重新构建。

如果您尝试使用 v3 SDK,请注释/删除 com.google.android.gms:play-services-analytics:8.3.0 编译行并重新构建。

来源:最新的分析 API 文档 https://developers.google.com/analytics/devguides/collection/android/v4/

关于android-studio - 错误 :Execution failed for task : ransformException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34369197/

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