MohammedAli
MohammedAli

Reputation: 2519

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

Upvotes: 4

Views: 1549

Answers (1)

Roy
Roy

Reputation: 648

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

Upvotes: 4

Related Questions