How can I solve it? I already tried the multidexenabled true and it throws me another error
The error:
DexIndexOverflowException: method ID not in [0, 0xffff]
is also related to the limit of 65k methods, add within the block defaultConfig
the definition of the multidex support in your file build.gradle
:
android {
defaultConfig {
...
// Enabling multidex support.
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.1'
}
It's important to synchronize your project with the file build.gradle
File
> Synchronize