Reputation: 398
I am trying to build ./gralde assembleAndroidTest and the result is an error
FAILURE: Build failed with an exception.
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
Following is my project gradle details:
app/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'
}
I am getting conflict error message in both build.gradle
Upvotes: 1
Views: 1064