React Native Task :app:mergeDexDebug FAILED -

React Native Task :app:mergeDexDebug FAILED
by on on android

React Native Task :app:mergeDexDebug FAILED

Here is the solution, if you encounter  mergedexdebug failed


At Path android/app/build.gradle


defaultConfig {
multiDexEnabled true //Add this line
}