Flutter构建失败,ERROR:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not find io.flutter:flutter_embedding_debug:1.0.0-33ad6757e88311f4fb9d341918894e2bc30e3b20.
     Required by:
         project :app
   > Could not find io.flutter:arm64_v8a_debug:1.0.0-33ad6757e88311f4fb9d341918894e2bc30e3b20.
     Required by:
         project :app
   > Could not find io.flutter:x86_debug:1.0.0-33ad6757e88311f4fb9d341918894e2bc30e3b20.
     Required by:
         project :app
   > Could not find io.flutter:x86_64_debug:1.0.0-33ad6757e88311f4fb9d341918894e2bc30e3b20.
     Required by:
         project :app

* 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 27s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        27.7s
Gradle task assembleDebug failed with exit code 1

粗暴的办法删除就是删除系统用户目录C:\Users\administrator\.gradle下的.gradle文件夹,然后重新构建fiutter项目即可,亲测可用

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容