gpt4 book ai didi

android - com.google.firebase.functions.ContextProvider 的不满足依赖关系

转载 作者:行者123 更新时间:2023-12-05 00:06:14 33 4
gpt4 key购买 nike

尝试添加 firebase 函数依赖项 com.google.firebase:firebase-functions:16.1.3 会导致以下运行时异常。有人知道如何解决这个问题吗?

java.lang.RuntimeException: Unable to create application com.test.nsa: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[interface com.google.firebase.functions.ContextProvider]>{0, deps=[Dependency{anInterface=interface com.google.firebase.iid.internal.FirebaseInstanceIdInternal, required=true, direct=false}, Dependency{anInterface=interface com.google.firebase.auth.internal.InternalAuthProvider, required=false, direct=false}]}: interface com.google.firebase.iid.internal.FirebaseInstanceIdInternal
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6100)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1791)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7000)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
Caused by: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[interface com.google.firebase.functions.ContextProvider]>{0, deps=[Dependency{anInterface=interface com.google.firebase.iid.internal.FirebaseInstanceIdInternal, required=true, direct=false}, Dependency{anInterface=interface com.google.firebase.auth.internal.InternalAuthProvider, required=false, direct=false}]}: interface com.google.firebase.iid.internal.FirebaseInstanceIdInternal
at com.google.firebase.components.ComponentRuntime.validateDependencies(com.google.firebase:firebase-common@@16.0.4:103)
at com.google.firebase.components.ComponentRuntime.<init>(com.google.firebase:firebase-common@@16.0.4:61)
at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@16.0.4:539)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.4:355)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.4:324)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.4:310)

最佳答案

我在将 Firebase 与动态功能模块一起使用时遇到了同样的问题。通过在 :app 模块中复制依赖关系设法修复它。

关于android - com.google.firebase.functions.ContextProvider 的不满足依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54885752/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com