简体   繁体   中英

FLUTTER Project Error : FAILURE: Build failed with an exception

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

Already Question But No Answer :

Execution failed for task ':app:desugarDebugFileDependencies'

Visual Studio Error :

https://prnt.sc/qrlvt1

Android Studio Error :

https://prnt.sc/qrlw6r

https://prnt.sc/qrlway

https://prnt.sc/qrlwfk

https://prnt.sc/qrlwkc

https://prnt.sc/qrlwpm

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM