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

dynamic-feature mlkit translate #114

Open
tmxdyf opened this issue Nov 29, 2021 · 0 comments
Open

dynamic-feature mlkit translate #114

tmxdyf opened this issue Nov 29, 2021 · 0 comments

Comments

@tmxdyf
Copy link

tmxdyf commented Nov 29, 2021

Hello, I will dynamically download the module of mlkit translate and throw this exception

base module

implementation 'com.google.mlkit:playstore-dynamic-feature-support:16.0.0-beta1'

crash

AndroidRuntime: FATAL EXCEPTION: main
    Process: com.zaz.translate, PID: 15291
    java.lang.RuntimeException: Unable to get provider com.google.mlkit.common.internal.MlKitInitProvider: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.android.gms.internal.mlkit_translate.zzwx]>{0, type=0, deps=[Dependency{anInterface=class android.content.Context, type=required, injection=direct}, Dependency{anInterface=class com.google.mlkit.common.sdkinternal.SharedPrefManager, type=required, injection=direct}, Dependency{anInterface=interface com.google.android.gms.internal.mlkit_translate.zzww, type=required, injection=direct}]}: class com.google.mlkit.common.sdkinternal.SharedPrefManager
        at android.app.ActivityThread.installProvider(ActivityThread.java:7250)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6785)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6702)
        at android.app.ActivityThread.access$1400(ActivityThread.java:236)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1962)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:264)
        at android.app.ActivityThread.main(ActivityThread.java:7684)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:507)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
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