Skip to content

I get a Dex failure issue when compiling (Cannot fit requested classes in a single dex file) #4255

Answered by mikehardy
meashishpokhrel asked this question in Q&A
Discussion options

You must be logged in to vote

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:

Caused by: com.android.tools.r8.utils.AbortException: Error: null, Cannot fit requested classes in a single dex file (# methods: 97445 > 65536)

Do this: https://rnfirebase.io/#android-enabling-multidex

Example https://github.com/mikehardy/rnfbdemo/blob/9e80bacc9b62961f89246eea82dd956f4f8660f8/make-demo.sh#L179-L188

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@meashishpokhrel
Comment options

Answer selected by andersonaddo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants