flutter吧 关注:1,397贴子:2,985
  • 2回复贴,共1

flutter创建项目求助

只看楼主收藏回复

请教问题:
flutter create ** 命创建的项目,创建好后直接直接运行报错
FAILURE: Build failed with an exception.
* Where:
Settings file 'G:\flutterProject\desktop\desktop\android\settings.gradle.kts' line: 23
* What went wrong:
Error resolving plugin [id: 'dev.flutter.flutter-plugin-loader', version: '1.0.0']
> A problem occurred configuring project ':gradle'.
> Multiple build operations failed.
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\8a6df3199fe4ce9eb355a963c05b45df\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\12092c73883b5d413c5343450519df07\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\6e60bae89f675d073b6ad72ed848c935\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\350d477d5814a2c2469bb01406d4e0ef\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\7670d2a327deccefbb4319f656d52ccf\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\52bf080e7b5383cfc016c16fc75f36f8\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\2072417fc4efeafd12cfc28f127372c8\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\dc1999a97916923a0f067bb88d9e594c\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\3ace6054e73c5717226796a0ad06a80f\metadata.bin
Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\547b069c0e108165162488b4df7d242b\metadata.bin
...and 3 more failures.
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\8a6df3199fe4ce9eb355a963c05b45df\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\12092c73883b5d413c5343450519df07\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\6e60bae89f675d073b6ad72ed848c935\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\350d477d5814a2c2469bb01406d4e0ef\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\7670d2a327deccefbb4319f656d52ccf\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\52bf080e7b5383cfc016c16fc75f36f8\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\2072417fc4efeafd12cfc28f127372c8\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\dc1999a97916923a0f067bb88d9e594c\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\3ace6054e73c5717226796a0ad06a80f\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\547b069c0e108165162488b4df7d242b\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\9142c17ba9ec52151f9198893678785f\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\13a3c92fd91e8edbfe5e11e0fb090b3d\metadata.bin
> Could not read workspace metadata from C:\Users\happy\.gradle\caches\8.10.2\transforms\2388a7c901e10d5384c19d8a1d9a7a9c\metadata.bin
* 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 679ms


IP属地:江苏1楼2025-04-13 15:55回复
    科学上网


    IP属地:广东来自Android客户端2楼2025-04-14 01:53
    回复
      2025-08-24 22:57:00
      广告
      不感兴趣
      开通SVIP免广告
      直接android studio 创建 开发 打包 一条龙不好吗


      IP属地:湖北3楼2025-07-25 17:12
      回复