NoClassDefFoundError on Calligraphy library

后端 未结 6 612
南笙
南笙 2021-01-01 19:49

After adding compile \'com.android.support:support-v13:21.0.+\' to build.gradle, I had some conflicts on building my app, so I had to add m

6条回答
  •  被撕碎了的回忆
    2021-01-01 20:03

    If your application extends from Application then override attachBaseContext inside Application i.e

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
    

    Also need to add dependency

    compile 'com.android.support:multidex:1.0.1'
    

提交回复
热议问题