React Native错误-无法确定任务':app:compileDebugJavaWithJavac'的依赖关系

时间:2021-05-18 00:51:26

标签: react-native react-native-android

我收到以下错误,该错误之前运行良好,但第二天它开始抛出此错误。

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
   > Problems reading data from Binary store in C:\Users\wsguest\AppData\Local\Temp\gradle8528155178066901693.bin offset 38021 exists? true

* 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 14s

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.bat app:installDebug -PreactNativeDevServerPort=8081

npm ERR! code 1
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c react-native run-android

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\wsguest\AppData\Local\npm-cache\_logs\2021-05-18T00_30_03_793Z-debug.log

有什么建议可能是错误的原因吗?

0 个答案:

没有答案