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

[ok_http] Failed to lookup symbol 'GetExceptionDetails': undefined symbol: GetExceptionDetails #1705

Open
orestesgaolin opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
package:cronet_http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@orestesgaolin
Copy link

When using ok_http 0.1.0 getting any network exception leads to following error:

I/flutter (22387): Invalid argument(s): Failed to lookup symbol 'GetExceptionDetails': undefined symbol: GetExceptionDetails
I/flutter (22387): #0      DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70)
I/flutter (22387): #1      JniBindings._GetExceptionDetailsPtr (package:jni/src/third_party/jni_bindings_generated.dart:96:79)
I/flutter (22387): #2      JniBindings._GetExceptionDetailsPtr (package:jni/src/third_party/jni_bindings_generated.dart)
I/flutter (22387): #3      JniBindings._GetExceptionDetails (package:jni/src/third_party/jni_bindings_generated.dart:98:37)
I/flutter (22387): #4      JniBindings._GetExceptionDetails (package:jni/src/third_party/jni_bindings_generated.dart)
I/flutter (22387): #5      JniBindings.GetExceptionDetails (package:jni/src/third_party/jni_bindings_generated.dart:90:12)
I/flutter (22387): #6      Jni.throwException (package:jni/src/jni.dart:183:31)
I/flutter (22387): #7      _check (package:jni/src/accessors.dart:17:9)
I/flutter (22387): #8      JniClassLookupResultMethods.checkedClassRef (package:jni/src/accessors.dart:105:5)
I/flutter (22387): #9      Jni.findClass (package:jni/src/jni.dart:177:10)
I/flutter (22387): #10     new JClass.forName (package:jni/src/jclass.dart:17:50)
I/flutter (22387): #11     OkHttpClient$Builder._class (package:ok_http/src/jni/bindings.dart:5082:38)
I/flutter (22387): #12     OkHt

flutter doctor:

❯ f doctor -v                                                  
[✓] Flutter (Channel stable, 3.27.3, on macOS 15.1.1 24B91 darwin-arm64, locale pl-PL)
    • Flutter version 3.27.3 on channel stable at /Users/dominik/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c519ee916e (10 days ago), 2025-01-21 10:32:23 -0800
    • Engine revision e672b006cb
    • Dart version 3.6.1
    • DevTools version 2.40.2

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/dominik/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Android Studio (version 2024.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.11+0-17.0.11b1207.24-11852314)

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

[✓] Connected device (4 available)
    • SM G991B (mobile)               • R5CR617G51T               • android-arm64 • Android 14 (API 34)
    • iPhone 12 mini (mobile)         • 00008101-0001510C3CF0001E • ios           • iOS 18.1.1 22B91
    • macOS (desktop)                 • macos                     • darwin-arm64  • macOS 15.1.1 24B91 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin        • macOS 15.1.1 24B91 darwin-arm64
    ! Error: Browsing on the local area network for Dominik’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)

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

! Doctor found issues in 1 category.
@orestesgaolin orestesgaolin added package:cronet_http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:cronet_http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants