Error creating a Release of my Android App

3

I'm making an App with AndroidStudio 2.1 In Debut mode, it runs well and does what it should do, but at the time of compiling in Release mode, it does not do it and sends the following errors:

Does anyone know what I am doing wrong or what I still need to do?

    
asked by Carlos Hidalgo 16.07.2016 в 05:25
source

1 answer

2

Enable multidex support within your build.gradle :

android {
    ...

    defaultConfig {
        ...

        // Habilita soporte multidex.
        multiDexEnabled true
    }
    ...
}

The error is caused because the specification of a Dalvik executable indicates a limit of the total number of methods that can be referenced in a .DEX file as 65,536, if you have a larger amount you must enable the support.

link

    
answered by 16.07.2016 в 11:30