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函數

相關文章
相關標籤/搜索