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",
...
Add multiDexEnabled true in your build.gradle.
android {
//
defaultConfig {
multiDexEnabled true
}
}
multiDexEnabled true
i have it but not working
any solution to this one ?
my solution https://www.npmjs.com/package/jetifier
Most helpful comment
Add
multiDexEnabled truein yourbuild.gradle.