gpt4 book ai didi

java.lang.NoSuchMethodError : No virtual method zzbqo()Z in class Lcom/google/firebase/FirebaseApp; 错误

转载 作者:行者123 更新时间:2023-11-29 23:27:12 26 4
gpt4 key购买 nike

这是我遇到的错误:

java.lang.NoSuchMethodError: No virtual method zzbqo()Z in class Lcom/google/firebase/FirebaseApp; or its super classes (declaration of 'com.google.firebase.FirebaseApp' appears in /data/app/com.example.akash.firedemo-Tniw8sNtmq6E7zMSOD54YQ==/split_lib_dependencies_apk.apk)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source:128)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source:22)
at com.example.akash.firedemo.MainActivity.onCreate(MainActivity.java:29)

最佳答案

你应该升级库。
首先,在项目级别的build.gradle文件中,添加如下内容:

classpath 'com.google.gms:google-services:4.0.1'

然后,在模块级别的build.gradle文件中,添加如下内容:

implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.firebaseui:firebase-ui-auth:4.2.1'

关于java.lang.NoSuchMethodError : No virtual method zzbqo()Z in class Lcom/google/firebase/FirebaseApp; 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53358737/

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