GobsRuiz
GobsRuiz

Reputation: 199

ReactNative: ERROR: Failed to install the app

Every time I run these two commands

yarn add @react-native-firebase/app
yarn add @react-native-firebase/firestore

And then I try to execute the project, it gives a gigantic error and in the end this appears:

enter image description here

My code is the same when you create a new project, the difference is that it doesn't have that standard content. I removed that 'React$Node', deixando o aquela linha assim 'const App = () => {', mas não funciona também. Eu utilizo o expo e já utilizei o cli e nunca vi o App.js estruturado desta maneira

I have already created several projects and I always repeat the same documentation process and always give this error

Someone please help me, I really need to solve this

Upvotes: 1

Views: 187

Answers (1)

Mehran Khan
Mehran Khan

Reputation: 3636

it is The number of method references in a .dex file cannot exceed 64K error

modify android/app/build.gralde

android {
    defaultConfig {
        ...
        multiDexEnabled true -> add this
    }
    ...
}

dependencies {
  implementation 'androidx.multidex:multidex:2.0.1' -> add this
}

Upvotes: 2

Related Questions