5

Whenever I add a new dependency/package in pub spec and run my code is throws out the error:

Compiler message: Error: Could not resolve the package 'circulardropdownmenu'

It works after I restart android studio.

Marios
  • 26,333
  • 8
  • 32
  • 52
ShahinS
  • 393
  • 1
  • 3
  • 5
  • Instead of restarting android studio. Rerun the app again from the start.... – Biplove Lamichhane Aug 22 '20 at 07:37
  • Did you remember to run 'Pub get?' (If not, it should be up in the right corner as a little blue link thing, just click it and it should help, at least if you forgot before) – Tobias H. Aug 22 '20 at 08:19

2 Answers2

0

Apparently you have to re-run (build) the app, and then wait a minute or so.

The pub get link that Android Studio offers in the pubspec.yaml file is not enough.

ig-dev
  • 489
  • 1
  • 5
  • 15
0

in your terminal try:

flutter pub get
YaHoova
  • 1
  • 2