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

[native_dio_adapter] Type 'BaseResponseWithUrl' not found. #2165

Closed
JSBmanD opened this issue Mar 27, 2024 · 2 comments
Closed

[native_dio_adapter] Type 'BaseResponseWithUrl' not found. #2165

JSBmanD opened this issue Mar 27, 2024 · 2 comments

Comments

@JSBmanD
Copy link

JSBmanD commented Mar 27, 2024

Package

native_dio_adapter

Version

1.3.0

Operating-System

MacOS, Linux

Adapter

NativeAdapter

Output of flutter doctor -v

flutter doctor -v
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.3.1 23D60 darwin-arm64, locale en-RU)
    • Flutter version 3.19.0 on channel stable at /Users/dmitry/fvm/versions/3.19.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bae5e49bc2 (6 weeks ago), 2024-02-13 17:46:18 -0800
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/dmitry/Documents/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/dmitry/Documents/sdk
    • Java binary at: /Users/dmitry/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.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    ! CocoaPods 1.12.1 out of date (1.13.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods for instructions.

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --ignore-certificate-errors
    --disable-web-security --user-data-dir=/Users/dmitry/temp)
    ! /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --ignore-certificate-errors --disable-web-security --user-data-dir=/Users/dmitry/temp is not
      executable.

[✓] Android Studio (version 2023.1)
    • Android Studio at /Users/dmitry/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)

[✓] IntelliJ IDEA Community Edition (version 2023.3.2)
    • IntelliJ at /Users/dmitry/Applications/IntelliJ IDEA Community Edition.app
    • Flutter plugin version 78.3.1
    • Dart plugin version 233.14888

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

[✓] Connected device (2 available)
    • iPhone SE (3rd generation) (mobile) • A2D1B9B8-046E-48B0-BAAA-2F060126A78A • ios          • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
    • macOS (desktop)                     • macos                                • darwin-arm64 • macOS 14.3.1 23D60 darwin-arm64

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

! Doctor found issues in 2 categories.

Dart Version

3.3.0

Steps to Reproduce

  1. Use package
  2. Add adapter to dio
      final restDio = Dio(
        BaseOptions(
          baseUrl: apiUrl,
          connectTimeout: const Duration(seconds: 30),
          receiveTimeout: const Duration(seconds: 30),
          sendTimeout: const Duration(seconds: 30),
        ),
      )
restDio.httpClientAdapter = NativeAdapter();

Expected Result

Programs run

Actual Result

Running Xcode build...
Xcode build done.                                           518.7s
Failed to build iOS app
Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/cupertino_http-1.3.0/lib/src/cupertino_client.dart:22:16: Error: Type 'BaseResponseWithUrl' not found.

Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).
@JSBmanD JSBmanD added h: need triage This issue needs to be categorized s: bug Something isn't working labels Mar 27, 2024
@AlexV525
Copy link
Member

I guess you need to run flutter pub upgrade.

@JSBmanD
Copy link
Author

JSBmanD commented Mar 27, 2024

Looks like the problem was in old http package. Removed dep override and now it's working.

@JSBmanD JSBmanD closed this as completed Mar 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 Mar 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