簡體   English   中英

如果我運行應用程序,我突然收到此錯誤,這是什么問題?

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

在此處輸入圖像描述

多個dex文件定義Landroid/support/v4/app/INotificationSideChannel$Stub(error)

把它放在你的 gradle 配置中

multiDexEnabled true

在 defaultConfig 或特定構建中啟用 multiDex

 defaultConfig {
    ...

    multiDexEnabled true

}

如果您使用的是 androidx,請添加以下依賴項

dependencies {
def multidex_version = "2.0.1"
implementation 'androidx.multidex:multidex:$multidex_version'}

或者如果您不使用 androidx,請使用以下支持庫

dependencies {

implementation 'com.android.support:multidex:1.0.3'

}

以下文檔中給出的詳細信息和參考

https://developer.android.com/studio/build/multidex

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM