React-native-fs: Android build failed in react-native 0.59.9

Created on 17 Jul 2019  路  4Comments  路  Source: itinance/react-native-fs

react-native run-android and Task :app:transformDexArchiveWithDexMergerForRelease FAILED

java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder
.dexing.DexArchiveMergerException: Error while merging dex archives: 
Learn how to resolve the issue at https://developer.android.com/studio/buil
d/dependencies#duplicate_classes.
Program type already present: androidx.versionedparcelable.R

package dependency is

    "react": "16.8.3",
    "react-native": "0.59.9",
    "react-native-firebase": "^5.5.4",
    "react-native-fs": "^2.13.3",
   ...

Most helpful comment

Add multiDexEnabled true in your build.gradle.

android { 
//
  defaultConfig { 
     multiDexEnabled true
  }
}

All 4 comments

Add multiDexEnabled true in your build.gradle.

android { 
//
  defaultConfig { 
     multiDexEnabled true
  }
}

multiDexEnabled true

i have it but not working

any solution to this one ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crobinson42 picture crobinson42  路  4Comments

AbdelkaderOumrani picture AbdelkaderOumrani  路  3Comments

barnir picture barnir  路  3Comments

wmonecke picture wmonecke  路  3Comments

ToJen picture ToJen  路  4Comments