gpt4 book ai didi

react-native - 错误: Execution failed for task ':app:processDebugManifest'

转载 作者:行者123 更新时间:2023-12-02 09:07:14 31 4
gpt4 key购买 nike

几天前它还在工作。我没有更新任何东西。删除了 node_modules 文件夹 - 同样的事情。

可能出了什么问题?请指点一下。

已尝试添加到 AndroidManifest.xml:

- tools:node="replace"
or
- tools:replace="android:appComponentFactory"
android:appComponentFactory="whatever"

没有任何帮助。

build.gradle 文件

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 19
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesAuthVersion = "15.0.1"
}
...
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

这是来自控制台的错误

> Task :app:processDebugManifest FAILED
...\android\app\src\debug\AndroidManifest.xml:22:18-91 Error:
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).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-117 to override.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> 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).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-117 to override.

最佳答案

升级react-native-device-info也可以 yarn upgrade <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e59780848691c88b84918c9380c88180938c8680c88c8b838aa5d7cbd4cbd7" rel="noreferrer noopener nofollow">[email protected]</a>

关于react-native - 错误: Execution failed for task ':app:processDebugManifest' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56649998/

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