Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
解决办法
配置方法数超过 64K 的应用
简单解决 办法
将您的 minSdkVersion 设置为 21 或更高值,您只需在模块级 build.gradle 文件中将 multiDexEnabled 设置为 true,
android {
defaultConfig {
... minSdkVersion 21
targetSdkVersion 25 multiDexEnabled true
}
...}
亲测好用 记录一下
引用文章 https://blog.csdn.net/iromkoear/article/details/70767721
网友评论