cesardeazevedo / react-native-bottom-sheet-behavior

react-native wrapper for android BottomSheetBehavior
MIT License
1.16k stars 114 forks source link

Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED #51

Closed NithinKulal closed 5 years ago

NithinKulal commented 5 years ago

D8: Program type already present: android.support.design.widget.CoordinatorLayout$1

FAILURE: Build failed with an exception.

ramadhanoo commented 5 years ago

i get same issue

ramadhanoo commented 5 years ago

how to solve this?

cesardeazevedo commented 5 years ago

Add support:design dependency on your android/app/build.gradle

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
+   implementation "com.android.support:design:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules
    implementation project(':react-native-bottom-sheet-behavior')
}