您好,我正在为其中一个应用程序使用AndroidX。但是由于某些原因,由于node_module造成了问题,我需要删除对AndroidX的支持。使用AndroidX可以很好地完成项目工作。但是当我删除它时,我得到了以下错误:
错误:程序类型已存在:android.support.v4.app.INotificationSideChannel
我尝试将模块从依赖项中排除,但是错误仍然存在。
依赖性:
implementation 'com.android.support:multidex:1.0.3'
implementation project(':react-native-gesture-handler')
implementation project(':react-native-vector-icons')
implementation project(':react-native-sentry')
implementation project(':react-native-firebase')
implementation project(':react-native-camera')
implementation project(':react-native-device-info')
implementation project(':react-native-firebase')
implementation project(':react-native-maps')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation ("com.google.android.gms:play-services-base:17.0.0"){
force = true
}
implementation ("com.google.android.gms:play-services-auth:17.0.0"){
force = true
}
implementation "com.google.firebase:firebase-core:16.0.6"
implementation "com.google.firebase:firebase-perf:16.2.3"
implementation "com.google.firebase:firebase-storage:16.0.5"
implementation "com.google.firebase:firebase-config:16.1.2"
implementation "com.google.firebase:firebase-database:16.0.5"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
transitive = true
}
implementation "com.google.firebase:firebase-messaging:17.3.4"
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
implementation "com.google.firebase:firebase-functions:16.1.3"
implementation "com.google.firebase:firebase-firestore:17.1.5"
implementation "com.google.firebase:firebase-auth:16.1.0"
有人可以帮我吗?