Error classeswithdexfordebug

1

How can I solve it? I already tried the multidexenabled true and it throws me another error

    
asked by Nelson Emmanuel 09.03.2017 в 23:17
source

1 answer

0

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

    
answered by 10.03.2017 в 01:21