gpt4 book ai didi

android - 任务 :react-native-firebase:compileReleaseJavaWithJavac FAILED

转载 作者:行者123 更新时间:2023-12-03 04:57:16 27 4
gpt4 key购买 nike

我克隆了我自己的仓库。在 react native 上进行项目,我安装了节点模块并根据我的项目要求设置了 Jdk8。然后我使用 react-native run-android 运行我的项目。显示错误

Task :react-native-firebase:compileReleaseJavaWithJavac FAILED



FAILURE:构建失败并出现异常。
* What went wrong:
Execution failed for task ':react-native-firebase:compileReleaseJavaWithJavac'.
> Could not create service of type GeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().

* 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 3s
13 actionable tasks: 2 executed, 11 up-to-date
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

Command failed: ./gradlew installDebug

Error: Command failed: ./gradlew installDebug
at checkExecSyncError (child_process.js:601:13)
at Object.execFileSync (child_process.js:621:13)
at runOnAllDevices (/Volumes/Transcend/Emjoy/admin_panel_app_emjoy/node_modules/react-native/local-cli/runAndroid/runAndroid.js:299:19)
at buildAndRun (/Volumes/Transcend/Emjoy/admin_panel_app_emjoy/node_modules/react-native/local-cli/runAndroid/runAndroid.js:135:12)
at isPackagerRunning.then.result (/Volumes/Transcend/Emjoy/admin_panel_app_emjoy/node_modules/react-native/local-cli/runAndroid/runAndroid.js:65:12)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

我的 react-native、react-native-cli、react-native-firebase 所有包的版本都和项目所需的一样。

最佳答案

如果您使用的是 React-Native 0.60+,请确保使用。

npx jetify

从项目根目录。

关于android - 任务 :react-native-firebase:compileReleaseJavaWithJavac FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56567320/

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