Home > Back-end >  BUILD FAILED in 9s Exception: Gradle task assembleDebug failed with exit code 1
BUILD FAILED in 9s Exception: Gradle task assembleDebug failed with exit code 1

Time:07-05

I work on VScode Flutter project with bloc i was working normally and restart the application and then an error shows up to me in the DEBUGCONSOLE saying 'Error: Not found: 'dart:js''

enter image description here enter image description here

THIS IS MY PUBSBEC.YAML CODE

enter image description here

CodePudding user response:

flutter clean

Delete pubspec.lock

flutter pub get

flutter run

Please try these. Also please dont add screenshots of error or codes. Copy paste it here.

CodePudding user response:

Try to downgrade your flutter and then upgrade again.

flutter downgrade v2.8.0
flutter upgrade

  • Related