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
May be because the Dio package is now obsolete.
I recomend you choose another package.
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
:flutter clean
rm pubspec.lock
rm -rf ~/.pub-cache/
if you’re on Mac