Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter run failed with error "Could not resolve the package 'characters' in 'package:characters/characters.dart'."

Tags:

Flutter run command

Output Could not resolve the package 'characters' in 'package:characters/characters.dart'.

flutter doctor

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.47.2) [✓] Connected device (3 available) 
like image 514
Subair K Avatar asked Jul 25 '20 08:07

Subair K


2 Answers

I faced this error too while updating Flutter today to Flutter Channel beta, 1.20.0-7.2.pre for an existing project. As mentioned in https://github.com/flutter/flutter/issues/59645#issuecomment-645236663 running: flutter clean solved the problem. This actually deletes the .dart_tool plus a few other files.

like image 94
cmaxetom Avatar answered Sep 16 '22 14:09

cmaxetom


I solved the the issue installing https://pub.dev/packages/characters

like image 33
Subair K Avatar answered Sep 16 '22 14:09

Subair K