Before, my program run well. But When I just updated my Android studio to the latest version (2.2 built on 15-sept-16), I am having the following error. When I built it, it says
It seems you have a problem with Over 64K Methods and then tried to resolved it with multiDexEnabled true
in build.gradle (app module). But you need to add more than:
add: compile 'com.android.support:multidex:1.0.0'
in dependencies of build.gradle
Extends your Application class to MultiDexApplication. and add MultiDex.install(this);
in onCreated
method of Application class.
your issue should be resolved
refer link: https://developer.android.com/studio/build/multidex.html