FLUTTER Project Error : FAILURE: Build failed with an exception

Issue

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

Solution

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

Answered By – Roy

Answer Checked By – Jay B. (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *