Resolve Android Studio Error ‘Cannot fit requested classes in a single dex file…’

Tiempo de lectura: < 1 minuto

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 … }

Leave a Comment