skip to Main Content

I found an error importing package from the ‘DIO’ library and it’s the following:

Target of URI doesn’t exist: from Android Studio. please see the error in the attached screenshot.

I want to get rid of this red marked error.

I followed the guidelines described in here
and here is the pub spec details:

#REMOTE DATA   dio: ^4.0.0 

and did pub get

I tried dio: ^5.0.0 also but result is the same.

2

Answers


  1. May be because the Dio package is now obsolete.
    I recomend you choose another package.

    Login or Signup to reply.
  2. Can you post the result for flutter pub get here? It seems the pub get is failing.

    Please run the following commands before flutter pub get:

    1. flutter clean
    2. rm pubspec.lock
    3. rm -rf ~/.pub-cache/ if you’re on Mac
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search