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

java.lang.NoSuchMethodError:org.chromium.net.b #2591

Open
1226362423 opened this issue Mar 12, 2025 · 3 comments
Open

java.lang.NoSuchMethodError:org.chromium.net.b #2591

1226362423 opened this issue Mar 12, 2025 · 3 comments
Labels
bug 🪲 Something isn't working

Comments

@1226362423
Copy link

1226362423 commented Mar 12, 2025

  • Android OS version: Android 12
  • Devices affected:
  • Maps SDK Version:11.10.2

There is a com.google.android.gms:play-services-cronet:18.1.0 org.chromium.net:cronet-api:72.3626.96 under com.mapbox.common:common:24.10.0. Is there a conflict with the version under org.chromium.net:cronet-api:119.6045.31 directly referenced under common? Resulting in the error java.lang.NoSuchMethodError

No direct method (Lorg/chromium/net/ProxyChangeListener;Landroid/content/Intent;)V in class Lorg/chromium/net/b; or its super classes (declaration of 'org.chromium.net.b' appears in /data/app/~~JtF0RjF89A3ut04yqGYe0g==/com.sx.sx-_Wbb-nEjm7upnnlQQnicpw==/base.apk!classes4.dex)

Use Cronet as the default network stack , Did you reference two different versions of Cronet?

This is the dependency tree I printed:

Image

Or is it caused by my release version of proguard rules?No mapbox related rules have been added

@1226362423 1226362423 added the bug 🪲 Something isn't working label Mar 12, 2025
@jush
Copy link
Member

jush commented Mar 14, 2025

@1226362423

Or is it caused by my release version of proguard rules?No mapbox related rules have been added

Can you provide the final rules that are related to cronet and mapbox? You can find them in your app build directory (for example: app/build/outputs/mapping/release/configuration.txt).

@1226362423
Copy link
Author

This is all the rules for my project:

configuration.txt

@1226362423
Copy link
Author

all_log.txt

This is all the tracking log information monitored

System version:Android 12, level 31

ROM :HuaWei/EMOTION

Foreground and background status:Background

Device model:ANG-AN00

CPU architecture:arm64-v8a

There are other models that also report errors, including Xiaomi, OPPO, OnePlus, etc.:

Usage time :1 second

Foreground and background status:Foreground

Device model:2201122C

System version:Android 13, level 33

ROM:XiaoMi/MIUI

CPU architecture:arm64-v8a

I'm sure this happened after upgrading Mapbox. There is no problem rolling back to the old Mapbox version. The mapbox version of my project was upgraded from 11.6.1 to 11.10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants