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

Abh*_*rav 5 android react-native

运行时的反应原生运行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 at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s
128 actionable tasks: 3 executed, 125 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.
Run Code Online (Sandbox Code Playgroud)

谢谢

Abh*_*rav 5

我解决了这个

npm uninstall react-native-device-info
Run Code Online (Sandbox Code Playgroud)

进而

npm install --save react-native-device-info
Run Code Online (Sandbox Code Playgroud)

最新版本应该是 2.1.2