[英]If I run application , I am suddenly getting this error , what is the problem?
put this in your gradle configuration把它放在你的 gradle 配置中
multiDexEnabled true
Enable multiDex inside defaultConfig, or in specific build在 defaultConfig 或特定构建中启用 multiDex
defaultConfig {
...
multiDexEnabled true
}
And add the following dependency if you are using androidx如果您使用的是 androidx,请添加以下依赖项
dependencies {
def multidex_version = "2.0.1"
implementation 'androidx.multidex:multidex:$multidex_version'}
Or the following support library if you are not using androidx或者如果您不使用 androidx,请使用以下支持库
dependencies {
implementation 'com.android.support:multidex:1.0.3'
}
The detailed information and reference given in the following documentation以下文档中给出的详细信息和参考
https://developer.android.com/studio/build/multidex https://developer.android.com/studio/build/multidex
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.