-
Notifications
You must be signed in to change notification settings - Fork 390
Description
After update cronet_http up to the version 1.6.0 Flutter debug run started to produce such error:
Exception in Java code called through JNI:
java.lang.ClassNotFoundException: io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface
java.lang.ClassNotFoundException: io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:597)
at java.lang.Class.forName(Class.java:502)
at com.github.dart_lang.jni.PortProxyBuilder.build(PortProxyBuilder.java:118)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:355)
at android.os.Looper.loopOnce(Looper.java:203)
at android.os.Looper.loop(Looper.java:337)
at android.app.ActivityThread.main(ActivityThread.java:9515)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:636)
at I/flutter ( 5688): com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
The problem is not happen if use --dart-define=cronetHttpNoPlay=true
Checked in Mac OS and Windows.
Flutter doctor output:
Output of flutter doctor -v
[✓] Flutter (Channel stable, 3.35.4, on macOS 15.7.2 24G317 darwin-arm64, locale en-US) [1,894ms]
• Flutter version 3.35.4 on channel stable at /opt/homebrew/share/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d693b4b9db (5 weeks ago), 2025-09-16 14:27:41 +0000
• Engine revision c298091351
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, no-enable-linux-desktop, no-enable-macos-desktop, no-enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [12.5s]
• Android SDK at /Users/ki/Library/Android/sdk
• Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.16+0)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1) [2.9s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17A400
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [96ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed) [95ms]
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
[✓] IntelliJ IDEA Ultimate Edition (version 2025.2.3) [95ms]
• IntelliJ at /Users/ki/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 88.0.0
• Dart plugin version 252.25557.23
[✓] Connected device (2 available) [6.2s]
• KI-PHONE (mobile) • 00008030-001A6C110CC0402E • ios • iOS 18.7.1 22H31
• Chrome (web) • chrome • web-javascript • Google Chrome 141.0.7390.108
[✓] Network resources [318ms]
• All expected network resources are available.
! Doctor found issues in 1 category.