相关疑难解决方法(0)

第一个 React Native App:任务 :app:processDebugMainManifest FAILED

问题

我已经按照 https://reactnative.dev/docs/environment-setup 中指定的说明进行操作,除了 choclatey,因为我已经有了节点等。但是我无法构建我的应用程序以到达模拟器上的输出 RN 样板(第 2 步:在文档中)遵循 npx react-native run-android。我已经搜索了很多小时来解决问题,但我一无所获,而且变得非常令人沮丧。下面我附上了相关的输出。


预先感谢您的帮助。我只是刚开始,所以如果我需要提出更多问题以完全理解这个问题,请原谅我。

命令输出
D:\CDLearn\ReactNative\AirBnb>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 903 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
> Task :app:processDebugMainManifest FAILED
11 actionable tasks: 11 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'. …
Run Code Online (Sandbox Code Playgroud)

gradle android-studio react-native react-native-android

14
推荐指数
5
解决办法
1万
查看次数

构建失败,出现本机反应异常

运行时的反应原生运行Android的我得到异常下面......它运行良好,我做了git pull,做了NPM词,之后,它是未来。新拉也没有变化。事实上,在执行 git Colon 之后,这也是同样的问题。它在 MAC 中运行良好。请帮助我被卡住了。

FAILURE:构建失败,出现异常。

* 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:13:5-33:19 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help …
Run Code Online (Sandbox Code Playgroud)

android react-native

5
推荐指数
1
解决办法
2万
查看次数