gpt4 book ai didi

android - list 合并失败 android.support.v4.app.CoreComponentFactory

转载 作者:行者123 更新时间:2023-11-29 18:30:14 25 4
gpt4 key购买 nike

给出的错误:

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).

Gradle 依赖

dependencies {
implementation project(':react-native-image-resizer')
implementation project(':react-native-gesture-handler')
implementation project(':react-native-device-info')
implementation project(':react-native-camera')
implementation project(':react-native-agora')
implementation fileTree(dir: "libs", include: ["*.jar"])

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'

implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'com.getkeepsafe.relinker:relinker:1.3.0'
implementation 'com.android.volley:volley:1.1.0'
implementation files('src/main/jniLibs/HCNetSDK.jar')
implementation files('src/main/jniLibs/PlayerSDK.jar')
implementation 'com.ncorti:slidetoact:0.5.1'
implementation 'com.squareup.picasso:picasso:2.71828'

implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation 'com.pusher:push-notifications-android:1.0.2'
}

编辑:这个GitHub ticket帮我解决了,好像是androidx和react-native的问题。获得 gms 和 firebase 版本 here

最佳答案

您需要从 andorid.support 和 android.arch 依赖项迁移到 AndroidX。正如错误消息所说,您的项目存在冲突,可能是因为 native 依赖关系,

This link should be helpful

Take a look also here

长话短说摆脱所有 andorid.supportandroid.arch 依赖项并改用 androidX

例如改变

实现 'com.android.support.constraint:constraint-layout:1.0.2'

进入

实现'androidx.constraintlayout:constraintlayout:1.1.2',

第二个示例更改

实现 'com.android.support:animated-vector-drawable:28.0.0'

进入

实现'androidx.vectordrawable:vectordrawable-animated:1.0.0'

并对所有支持依赖做类似的事情

关于android - list 合并失败 android.support.v4.app.CoreComponentFactory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56656338/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com