Flutter 1.22.5 错误无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系

时间:2021-07-06 12:27:37

标签: android flutter

我今天早上在尝试构建 android APK 时收到此错误

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:debugCompileClasspath'.
> Problems reading data from Binary store in C:\Users\myuser\AppData\Local\Temp\gradle7850604177738538489.bin offset 528100 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 29s
Exception: Gradle task assembleDebug failed with exit code 1

我开始开发已经 3 个月了,这是我第一次收到这个错误。我尝试运行 flutter doctor 并得到以下结果:

Doctor summary (to see all details, run flutter doctor -v):

[√] Flutter (Channel unknown, 1.22.5, on Microsoft Windows [Version 10.0.18363.1556], locale en-ID)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
X Unable to determine bundled Java version.
[!] IntelliJ IDEA Community Edition (version 2019.3)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected device (1 available)

! Doctor found issues in 2 categories.

知道如何解决这个问题吗?我已经尝试在互联网上搜索,但仍然没有任何线索。

仅供参考我的颤振版本 flutter 1.22.5android studio 4.2.2

0 个答案:

没有答案