com.android.builder.dexing.DexArchiveMergerException:

Java
// go to android/app/build.gradle

// Add the following command inside defaultConfig:

multiDexEnabled true
Source

Also in Java: