skip to Main Content

I manually deleted a package in External libraries/dart packages. Now I tried to run packages get again. The package(tesseract_ocr) did not appear in External libraries/dart packages.
I tried removing it in pubspec.yaml and re-adding it but did not appear again. I tried deleting .pub-cache and run packages get again. I tried flutter clean, flutter pub cache repair, flutter pub cache add tessarect_ocr and packages get so many times but none of them made tessarect_ocr package reappear in External libraries/dart packages. Please Help. Thanks in advance!

2

Answers


  1. Try

    dart pub cache clean
    

    or

    flutter pub cache clean
    
    Login or Signup to reply.
  2. facing the same issue I did the following things:
    1.

    flutter pub cache clean
    

    which reinstalled all the packages
    2. `

    flutter pub get

    `
    which update the dependencies and it works.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search