FLUTTER项目错误:失败:生成失败,出现异常 [英] FLUTTER Project Error : FAILURE: Build failed with an exception

查看:570
本文介绍了FLUTTER项目错误:失败:生成失败,出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a Mac, and when I run Flutter application with VSCode on iPhone it works, but if I run the same application on Android phone then throw error

已经有问题但没有答案:

任务':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

推荐答案

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

Use the Android SDK manager to uninstall build tools 28, and then reinstall them. That worked for me.

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

The build tools are listed under the 'SDK Tools' tab, you have to uncheck 'Hide obsolete packages' and check 'Show package details' to show version 28 of the build tools.

https://prnt.sc/qrnv1b

这篇关于FLUTTER项目错误:失败:生成失败,出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆