小编Leo*_*res的帖子

无法确定任务 ':app:mergeDebugAssets' 的依赖关系

当我在我的项目上运行 react-native run-android 时,我收到了 gradle 的构建错误。我已经用 npm uninstall --save react-native-ftp 卸载了 react-native-ftp,删除了 node_modules 的依赖,清除了 ./gradle 缓存文件。但是错误不断..

在我的环境窗口中,这个项目正常工作。

怎么回事?

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not …
Run Code Online (Sandbox Code Playgroud)

android gradle npm node-modules react-native

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

标签 统计

android ×1

gradle ×1

node-modules ×1

npm ×1

react-native ×1