报错
Cannot fit requested classes in a single dex file (# methods: 71309 > 65536)
解决方案
- 在defaultConfig中添加
multiDexEnabled true
android {
defaultConfig {
......
multiDexEnabled true
}
}
- 添加依赖
implementation 'com.android.support:multidex:1.0.3'