android 编译经过 但在运行时报 noclassdefound的错误

写代码或导入第三方库 这时有可能的5.0以前函数个数是有限制的,你超出了限制数量。android

解决: application里 @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }app

grade里 compile 'com.android.support:multidex:1.0.1'ide

multiDexEnabled true函数

相关文章
相关标签/搜索