-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] Exception fetching LoggerImpl class #2096
Labels
Comments
JCKodel
added
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Jan 13, 2024
Could you help to identify if this is also happening when using the cronet_http alone? |
I've created a new project and added only dio, native_dio_adapter and cronet-http. Using Dio, this is the log (notice the last Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Note: C:\Users\jckod\AppData\Local\Pub\Cache\hosted\pub.dev\jni-0.7.2\android\src\main\java\com\github\dart_lang\jni\JniPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
✓ Built build\app\outputs\flutter-apk\app-debug.apk.
W/OpenGLRenderer( 6658): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
W/OpenGLRenderer( 6658): Failed to initialize 101010-2 format, error = EGL_SUCCESS
I/Gralloc4( 6658): mapper 4.x is not supported
Connecting to VM Service at ws://127.0.0.1:52005/TX9UBB9WNeA=/ws
E/OpenGLRenderer( 6658): Unable to match the desired swap behavior.
W/ziparchive( 6658): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/0000002e/DynamiteLoader.dm': No such file or directory
W/ziparchive( 6658): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/0000002e/DynamiteLoader.dm': No such file or directory
I/DynamiteModule( 6658): Considering local module com.google.android.gms.cronet_dynamite:0 and remote module com.google.android.gms.cronet_dynamite:2611
I/DynamiteModule( 6658): Selected remote version of com.google.android.gms.cronet_dynamite, version >= 2611
V/DynamiteModule( 6658): Dynamite loader version >= 2, using loadModule2NoCrashUtils
W/System ( 6658): ClassLoader referenced unknown path:
D/nativeloader( 6658): Configuring clns-7 for other apk . target_sdk_version=34, uses_libraries=, library_path=/data/app/~~vLRq4ERImDC_oL4IzP0m5g==/com.google.android.gms-OvWGfV--stjaBafhWQxl6w==/lib/x86_64:/data/app/~~vLRq4ERImDC_oL4IzP0m5g==/com.google.android.gms-OvWGfV--stjaBafhWQxl6w==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
W/ziparchive( 6658): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.dm': No such file or directory
W/ziparchive( 6658): Unable to open '/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.dm': No such file or directory
D/nativeloader( 6658): Configuring clns-8 for other apk . target_sdk_version=33, uses_libraries=ALL, library_path=/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk!/lib/x86_64:/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand
I/cr_CronetLibraryLoader( 6658): Cronet version: 119.0.6045.31, arch: x86_64
E/hy ( 6658): Exception fetching LoggerImpl class
E/hy ( 6658): java.lang.ClassNotFoundException: Didn't find class "com.google.net.cronet.telemetry.CronetLoggerImpl" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk!/lib/x86_64, /data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/hy ( 6658): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
E/hy ( 6658): at dalvik.system.DelegateLastClassLoader.loadClass(DelegateLastClassLoader.java:199)
E/hy ( 6658): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/hy ( 6658): at org.chromium.net.impl.CronetUrlRequestContext.<init>(:com.google.android.gms.dynamite_cronetdynamite@[email protected] (190800-0):90)
E/hy ( 6658): at org.chromium.net.impl.NativeCronetEngineBuilderImpl.build(:com.google.android.gms.dynamite_cronetdynamite@[email protected] (190800-0):14)
E/hy ( 6658): at org.chromium.net.CronetEngine$Builder.build(CronetEngine.java:313)
I/flutter ( 6658): 200 Now, using cronet_http, same error: Restarted application in 947ms.
D/EGL_emulation( 6658): app_time_stats: avg=5001.00ms min=5001.00ms max=5001.00ms count=1
E/hy ( 6658): Exception fetching LoggerImpl class
E/hy ( 6658): java.lang.ClassNotFoundException: Didn't find class "com.google.net.cronet.telemetry.CronetLoggerImpl" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk!/lib/x86_64, /data/user_de/0/com.google.android.gms/app_chimera/m/0000002d/CronetDynamite.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/hy ( 6658): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
E/hy ( 6658): at dalvik.system.DelegateLastClassLoader.loadClass(DelegateLastClassLoader.java:199)
E/hy ( 6658): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/hy ( 6658): at org.chromium.net.impl.CronetUrlRequestContext.<init>(:com.google.android.gms.dynamite_cronetdynamite@[email protected] (190800-0):90)
E/hy ( 6658): at org.chromium.net.impl.NativeCronetEngineBuilderImpl.build(:com.google.android.gms.dynamite_cronetdynamite@[email protected] (190800-0):14)
E/hy ( 6658): at org.chromium.net.CronetEngine$Builder.build(CronetEngine.java:313) So, I guess is a cronet_http issue =\ |
Opened an issue there: dart-lang/http#1116 |
Thanks for the clarify. |
AlexV525
added
i: out of support
p: dependency
Targeting packages that's used by dio packages
and removed
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Jan 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Package
native_dio_adapter
Version
1.3.0
Operating-System
Android
Output of
flutter doctor -v
Dart Version
3.2.4
Steps to Reproduce
NativeAdapter()
onDio()..httpClientAdapter = NativeAdapter()
.Expected Result
To work without issues
Actual Result
The query is completed, but a native error is thrown:
Removing the
NativeAdapter
"fixes" the issue.The text was updated successfully, but these errors were encountered: