【发布时间】:2019-12-11 21:28:54
【问题描述】:
当我尝试从 React-Native 运行 Android 项目时出现以下错误。我从项目中删除了对 AndroidX 的支持。
Program type already present: android.support.v4.app.INotificationSideChannel$Stub
依赖:
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-device-info')
implementation project(':react-native-maps')
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "com.google.android.gms:play-services-base:17.0.0"
implementation "com.google.android.gms:play-services-auth:17.0.0"
implementation "com.google.firebase:firebase-core:17.0.1"
implementation "com.google.firebase:firebase-perf:17.0.0"
implementation "com.google.firebase:firebase-storage:16.0.5"
implementation "com.google.firebase:firebase-config:16.1.2"
implementation "com.google.firebase:firebase-database:18.0.1"
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:17.0.0"
我检查了所有 gradle 版本和所有内容,但没有任何帮助。谁能帮帮我?
【问题讨论】:
-
能写出报的是哪个错误吗?
-
我收到了与我发布的相同的错误。
标签: android react-native android-support-library androidx