问题描述
我有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错误:
Android Studio错误:
推荐答案
使用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.
这篇关于FLUTTER项目错误:失败:生成失败,出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!