当我在我的项目上运行 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)