FLUTTER项目错误:失败:构建失败,并出现异常

时间:2020-01-23 06:49:00

标签: android macos flutter

我有一台Mac,当我在iPhone上使用VSCode运行Flutter应用程序时,它可以工作,但是如果我在Android手机上运行相同的应用程序,则会抛出错误

已经有问题但没有答案:

Execution failed for task ':app:desugarDebugFileDependencies'

Visual Studio错误:

https://prnt.sc/qrlvt1

Android Studio错误:

https://prnt.sc/qrlw6r

https://prnt.sc/qrlway

https://prnt.sc/qrlwfk

https://prnt.sc/qrlwkc

https://prnt.sc/qrlwpm

1 个答案:

答案 0 :(得分:3)

使用Android SDK管理器卸载构建工具28,然后重新安装它们。那对我有用。

构建工具列在“ SDK工具”选项卡下,您必须取消选中“隐藏过时的软件包”并选中“显示软件包详细信息”以显示构建工具的版本28。

https://prnt.sc/qrnv1b