
在运行react-native run-android的时候,我遇到异常…
它运行良好,我做了一个git pull并做了npm ci,之后,它即将到来.新拉也没有变化.事实上,对于做完git冒号之后也是同样的问题.
它在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.orgDeprecated 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_warningsBUILD Failed in 5s128 actionable tasks: 3 executed, 125 up-to-dateerror 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 haveset up your AndroID development environment:https://facebook.github.io/react-native/docs/getting-started.HTMLerror Command Failed: gradlew.bat app:installDeBUG. Run Cli with --verbose flag for more details.谢谢
解决方法:
我解决了这个问题
npm uninstall react-native-device-info接着
npm install --save react-native-device-info最新版本应为2.1.2
总结以上是内存溢出为你收集整理的android – 构建失败,异常响应原生全部内容,希望文章能够帮你解决android – 构建失败,异常响应原生所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)