dart 在Flutter升级后,我收到错误“无法解析配置':app:debugRuntimeClasspath'的所有文件”

dohp0rv5  于 2023-07-31  发布在  Flutter
关注(0)|答案(1)|浏览(216)

当我将Flutter从Flutter 2.10.2升级到更新的版本时,我在创建的每个Flutter项目上都遇到了这个错误。即使当我创建新的Flutter项目(简单的计数器应用程序)时,我要运行应用程序,我得到这个错误。

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve io.flutter:x86_debug:1.0.0-bd539267b42051b0da3d16ffa8f48949dce8aa8f. Required by: project :app
> Could not resolve io.flutter:x86_debug:1.0.0-bd539267b42051b0da3d16ffa8f48949dce8aa8f.
> Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-bd539267b42051b0da3d16ffa8f48949dce8aa8f/x86_debug-1.0.0-bd539267b42051b0da3d16ffa8f48949dce8aa8f.pom

字符串

bmp9r5qi

bmp9r5qi1#

如果您没有在稳定通道上运行,请尝试切换到稳定通道并运行升级。

flutter channel stable && flutter upgrade

字符串
然后下载项目依赖项并再次运行应用程序。

flutter clean
flutter pub get
flutter run

相关问题