繁体   English   中英

Task:app:mergeExtDexDebug 在运行反应原生的 android 应用程序时失败

[英]Task :app:mergeExtDexDebug FAILED in running android app of react native

我正在尝试在 android 模拟器上运行我的 react 本机应用程序。 它运行了一段时间,然后给了我Expiring Daemon because JVM heap space is exhausted的错误。 这是我得到的实际错误 -

> Task :app:mergeExtDexDebug FAILED
ReactNativeFirebase WARNING: NPM package '@react-native-firebase/auth' depends on '@react-native-firebase/app' v7.2.1 but found v7.3.0, this might cause build issues or runtime crashes.
792 actionable tasks: 2 executed, 790 up-to-date
Expiring Daemon because JVM heap space is exhausted

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > java.lang.OutOfMemoryError (no error message)

* 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

BUILD FAILED in 1m 20s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

我也遇到过这个。 我使用的解决方案现在在此处的文档中。

You might also want to pin your npm package versions in your package.json for the react-native-firebase packages to make sure the right version are installed (you may need to remove your yarn.lock file first).

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM