I am having a little trouble with the complier, Same code I use on Nexus 5, no error. as Soon as I use it in Tablet, it crash right away and the error said
java.la
Having same issue and was stuck for a whole day. Finally got solution.
Add in your app level gradle.build:
repositories {
jcenter()
}
dependencies {
compile 'com.google.android:multidex:0.1'
}
Then override attachBaseContext in your Application class like below:
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
And don't forgot to enable mutlidex support as below:
android {
...
defaultConfig {
...
multiDexEnabled true
}
}