Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neerajkumar-lad opened this issue Jul 24, 2018 · 0 comments

Comments

@neerajkumar-lad
Copy link

neerajkumar-lad commented Jul 24, 2018

Hi Team,

I am not able to generate ./gradlew assembleAndroidTest -DtestBuildType=debug && cd ..

Error :

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

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"
}

 multiDexEnabled true

android/build.gradle:

ext {
    compileSdkVersion = 27
    buildToolsVersion = "27.0.2"
    targetSDKVersion = 27
    minSDKVersion = 21
}

android {
compileSdkVersion 25
buildToolsVersion "25.0.1"

react-native-custome-tabs/build.gradle:

    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'
      }

Following is the stack post https://stackoverflow.com/questions/51406881/execution-failed-for-task-react-native-custom-tabstransformdexarchivewithexte/51407576?noredirect=1#comment89827467_51407576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant