简体   繁体   English

如果我运行应用程序,我突然收到此错误,这是什么问题?

[英]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)多个dex文件定义Landroid/support/v4/app/INotificationSideChannel$Stub(error)

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.

相关问题 为什么在使用URLLoader时突然出现流错误? - Why am I suddenly getting stream error while using URLLoader? 我无法统一获得currentActivity,并且在设备中运行应用程序后出现以下错误 - I am not able to get the currentActivity in unity,and i am getting the following error after the application is run in the device 我当时在 Qt 中运行项目我收到此错误 - I am run the project in Qt at that time i am getting this error 运行 Android 应用程序时出现错误:app: dataBindingMergeDependencyArtifactsDebug - I am getting error when I run the Android application: app: dataBindingMergeDependencyArtifactsDebug 我的 Android 应用程序出现错误 - I am getting an error in my android application 我突然在Gradle的Android Studio中收到Play-Service-app-indexing:10.0.1错误 - I am Suddenly getting Play-Service-app-indexing:10.0.1 error in gradle of android Studio 为什么在运行应用程序时出现此错误? - Why am I getting this error when I run my app? 我遇到什么错误? Android计时器错误 - What kinda error am I getting? Android Timer Error 为什么在 Flutter 运行后出现此错误? - Why I am getting this error after Flutter Run? android-出现错误时如何运行程序 - android- How to run the program when i am getting error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM