Update flutter dependencies in /.pub-cache

后端 未结 4 1574
感情败类
感情败类 2020-12-15 03:43

I erased in my folder .pub-cache/hosted/pub.dartlang.org/this_plugin

What is the command to update the dependencies inside pubsec.yaml

4条回答
  •  感动是毒
    2020-12-15 04:19

    flutter pub cache repair 
    

    or delete /Users/xxxxxxx/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ and run flutter packages get again.

    if all the above things fail delete the cache folder or also check the version updated in the lock file (some time lock give me the problem with updating the version number)

    Disclaimer: By running the command above, have a really fast internet connection or be ready to lose one hour of productive hours. ( it will redownload every package every installed on your pc, and I mean each and all of the versions of each packages)~TSR

    PS: Why flutter pub cache repair download every package version previously used?

提交回复
热议问题