eI found this error after adding compile files(\'libs/mpandroidchartlibrary-2-1-6.jar\'). It work properly before adding mpandroidchartlibrary-2-1-6.jar
FAT
If the problem persists even after enabling multidex and everything make sure you have compiledSdkVersion compatible with the build tools...
I am not sure but I had some app with this and the problem persisted:
compileSdkVersion 25
buildToolsVersion "26.0.2"
It worked after changing to something like this:
compileSdkVersion 25
buildToolsVersion "25.0.3"