I get a Dex failure issue when compiling (Cannot fit requested classes in a single dex file) #4255
-
$ npx react-native run-android
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. FAILURE: Build failed with an exception.
BUILD FAILED in 1m 8s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The error you titled with this is not an error. That's a warning. (I edited it so it fits better, for future searchers) The error you have is a MultiDex failure. You have not enabled multidex, it's in the trace you posted if you look carefully:
|
Beta Was this translation helpful? Give feedback.
The error you titled with this is not an error. That's a warning. (I edited it so it fits better, for future searchers)
The error you have is a MultiDex failure. You have not enabled multidex, it's in the trace you posted if you look carefully:
Do this: https://rnfirebase.io/#android-enabling-multidex
Example https://github.com/mikehardy/rnfbdemo/blob/9e80bacc9b62961f89246eea82dd956f4f8660f8/make-demo.sh#L179-L188