I added this to the Application class:
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }
In my application build.grade file:
defaultConfig { applicationId "com.example.android.exampleapp" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true }
and added this as a dependency:
compile 'com.android.support:multidex:1.0.0'
This solved my problem. Thanks
Omar faroque anik
source share