clean and see still error is there if yes,
1.go to your build.gradle
file.
add multiDexEnabled true
defaultConfig {
multiDexEnabled true
}
2.in your dependencies add compile 'com.android.support:multidex:1.0.1'
dependencies {
compile 'com.android.support:multidex:1.0.1'
}
3.inside your application tag in menifest add android:name="android.support.multidex.MultiDexApplication"
<application
android:name="android.support.multidex.MultiDexApplication"
....
4.use this override method on your launching activity
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…