Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target of URI doesn't exist: 'package:dio/adapter.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist. #2224

Closed
qianYuanJ opened this issue May 27, 2024 · 1 comment

Comments

@qianYuanJ
Copy link

Package

dio

Version

5.4.3+1

Operating-System

MacOS

Adapter

Default Dio

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.22.1, on macOS 14.4.1 23E224 darwin-arm64, locale
    zh-Hans-CN)
    • Flutter version 3.22.1 on channel stable at
      /Users/yuanjiqian/fvm/versions/3.22.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a14f74ff3a (5 days ago), 2024-05-22 11:08:21 -0500
    • Engine revision 55eae6864b
    • Dart version 3.4.1
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/yuanjiqian/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.14.3

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.88.0

[!] Proxy Configuration
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[✓] Connected device (2 available)
    • iPhone 13 mini (mobile)         • 7D799262-849E-4B19-8ECE-7BC9DCE56332 •
      ios    • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                •
      darwin • macOS 14.4.1 23E224 darwin-arm64
    ! Error: Browsing on the local area network for 樱虹的iPhone. Ensure the device
      is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code
      -27)

[✓] Network resources
    • All expected network resources are available.

Dart Version

3.4.1

Steps to Reproduce

image

Expected Result

no error

Actual Result

error red line

@qianYuanJ qianYuanJ added h: need triage This issue needs to be categorized s: bug Something isn't working labels May 27, 2024
@AlexV525
Copy link
Member

The package didn't export adapter.dart as a library.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
@AlexV525 AlexV525 added i: not related and removed h: need triage This issue needs to be categorized s: bug Something isn't working labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants