gpt4 book ai didi

android - 任务 ':react-native-custom-tabs:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'的执行失败

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

我正在尝试构建./gralde assembleAndroidTest,结果是一个错误

失败:生成失败,发生异常。

What went wrong:

Execution failed for task ':react-native-custom-tabs:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'.

java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex



以下是我的项目gradle详细信息:

应用程序/build.gradle
androidTestImplementation(project(path: ":detox"))
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test:rules:1.0.1'
ext {
supportLibVersion = "27.0.2"
playServicesVersion = "11.8.0"
reactNativeVersion = "0.53.3"
}

android / build.gradle:
ext {
compileSdkVersion = 27
buildToolsVersion = "27.0.2"
targetSDKVersion = 27
minSDKVersion = 21
}

react-native-custome-tabs / build.gradle:
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"

defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
}
dependencies {
compile "com.facebook.react:react-native:+"
compile 'com.android.support:customtabs:25.0.1'
compile ('com.github.droibit.customtabslauncher:launcher:1.0.8') {
exclude module: 'customtabs'
}
testCompile 'junit:junit:4.12'
}

我在两个build.gradle中都收到冲突错误消息

app/build.gradle screenshot
react-native-customtab/build.gradle screenshot

最佳答案

使用compile 'com.android.support:customtabs:23.0.1'

关于android - 任务 ':react-native-custom-tabs:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'的执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51406881/

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