This error appears when trying to create a build (apk/aab) with Android Studio. To solve it, we have to go to the build.gradle of the app and add into defauldConfig:
multiDexEnabled true
Remaining as follows:
android { defaultConfig { … multiDexEnabled true … }
