简体   繁体   中英

If I run application , I am suddenly getting this error , what is the problem?

在此处输入图像描述

Multiple dex files define Landroid/support/v4/app/INotificationSideChannel$Stub(error)

put this in your gradle configuration

multiDexEnabled true

Enable multiDex inside defaultConfig, or in specific build

 defaultConfig {
    ...

    multiDexEnabled true

}

And add the following dependency if you are using 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM