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

[Bug report] Unable to get provider com.google.mlkit.common.internal.MlKitInitProvider #929

Open
vinodhupparapalli opened this issue Mar 20, 2025 · 0 comments

Comments

@vinodhupparapalli
Copy link

vinodhupparapalli commented Mar 20, 2025

Describe the bug
We have added mlkit-language-id dependency.

com.google.mlkit:language-id:17.0.6

We are getting crash on Android 9 and Android 10 on Huawei and Moto devices.

Following is the stacktrace:

Fatal Exception: java.lang.RuntimeException: Unable to get provider com.google.mlkit.common.internal.MlKitInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.mlkit.common.internal.MlKitInitProvider" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/base.apk", zip file "/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.arm64_v8a.apk", zip file "/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.xxxhdpi.apk"],nativeLibraryDirectories=[/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/lib/arm64, /data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/base.apk!/lib/arm64-v8a, /data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.xxxhdpi.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
at android.app.ActivityThread.installProvider(ActivityThread.java:6672)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6214)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6122)
at android.app.ActivityThread.access$1200(ActivityThread.java:213)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:215)
at android.app.ActivityThread.main(ActivityThread.java:6952)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
Caused by java.lang.ClassNotFoundException: Didn't find class "com.google.mlkit.common.internal.MlKitInitProvider" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/base.apk", zip file "/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.arm64_v8a.apk", zip file "/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.xxxhdpi.apk"],nativeLibraryDirectories=[/data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/lib/arm64, /data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/base.apk!/lib/arm64-v8a, /data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /data/app/com.glip.mobile-BdwhP14eAxXHZjHnGolpfQ==/split_config.xxxhdpi.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:121)
at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:66)
at android.app.ActivityThread.installProvider(ActivityThread.java:6656)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6214)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6122)
at android.app.ActivityThread.access$1200(ActivityThread.java:213)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:215)
at android.app.ActivityThread.main(ActivityThread.java:6952)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)

To Reproduce
Launch the App

Expected behavior
App should not crash

SDK Info:
com.google.mlkit:language-id:17.0.6

Smartphone:

  • Huawei, Model:Y9 Prime 2019
  • Motorola, Model:Moto Z (2) Force

Development Environment:
(For Android issue feel free to skip this section)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant