Android studio 編譯 The number of method references in a .dex file cannot exceed 64K.

出現這種情況的:工程在編譯的時候方法超過dex最多儲存範圍65536,會拋出異常MultiDex。 解決方法:在 app 裏面的build.gradle   android 加入   multiDexEnabled true 在 dependencies 加入 implementation 'com.android.support:multidex:1.0.1'
相關文章
相關標籤/搜索