首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android:程序类型已经存在: android.support.v4.app

Android:程序类型已经存在: android.support.v4.app
EN

Stack Overflow用户
提问于 2019-08-04 00:37:41
回答 1查看 554关注 0票数 0

当我试图从React-Native运行Android项目时,出现了下面的错误。我从项目中删除了AndroidX支持。

代码语言:javascript
复制
Program type already present: android.support.v4.app.INotificationSideChannel$Stub

依赖性:

代码语言:javascript
复制
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版本和所有的东西,但没有任何帮助。有谁可以帮我?

EN

回答 1

Stack Overflow用户

发布于 2019-08-12 05:22:07

我从项目中删除了AndroidX支持。

这是不正确的,这是问题所在。

在最新版本中,Firebase迁移到了AndroidX。这意味着你同时使用了支持库和androidx库。

您可以查看官方release notes;您正在使用这些版本。

您可以:

按照官方文档《

  • downgrade your firebase dependencies

》中所述,将

  • 迁移到androidx
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57340260

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档