我在应用程序的许多位置使用com.firebaseui:firebase-ui:0.2.0库中的FirebaseRecyclerViewAdapter。我的问题是如何在查询参数返回多个“索引”条目值(Map.Entry)的情况下应用它。如Firebase文档(https://www.firebase.com/docs/android/guide/structuring-data.html)中所述,我使用索引来保持数据结构平坦。这导致我需要将这些索引绑定(bind)到我的ViewHolder的情况。在填充View方法中,我使用索引的键来检索数据以填充查看器。我在创建适配器时遇到问题,不确
我创建了一个显示聊天消息的函数,我遵循了教程,还查看了Firebase列表适配器的文档,但无论我做什么,我都会收到此错误:Error:(98,19)error:constructorFirebaseListAdapterinclassFirebaseListAdaptercannotbeappliedtogiventypes;required:FirebaseListOptionsfound:Chat,Class,int,DatabaseReferencereason:actualandformalargumentlistsdifferinlengthwhereTisatype-var
每当我将com.google.firebase:firebase-firestore:19.0.0添加到Gradle并运行应用程序时,就会出现以下错误。E/AndroidRuntime:FATALEXCEPTION:mainProcess:meter.meter,PID:13588java.lang.NoSuchMethodError:NovirtualmethodsetTokenProvider(Lcom/google/firebase/internal/InternalTokenProvider;)VinclassLcom/google/firebase/FirebaseApp;o
我制作了一个使用Firebase的功能实时数据库的聊天应用程序。我遇到了谷歌身份验证问题。当我从Play商店下载该应用程序时,问题就开始了,当我在Debug模式下运行该应用程序时,身份验证工作正常。当用户尝试登录时,他们会收到toast消息code:10message:10。我想在这里指出:我已经添加了SHA1指纹。我该如何解决这个问题?*不确定这是否有帮助,但我已一步步遵循此tutorial 最佳答案 您需要三个键才能使其工作:调试key。资讯here.释放键。资讯here.GooglePlay应用签名key。资讯here.为了使
我正在使用FirebaseUIFirebaseRecyclerAdapter来填充RecyclerView。我设法从我的项目View(标题)的组件中获取点击事件,但不是我需要的项目View中的任何地方。我按照谷歌示例。在我的Activity中:privatevoidsetRecyclerView(){recyclerView=(RecyclerView)findViewById(R.id.recycler_view_gigs);recyclerView.setHasFixedSize(true);recyclerView.setLayoutManager(newLinearLayout
我在build.gradle中使用了以下依赖项:compile'com.google.firebase:firebase-database:11.4.2'compile'com.firebaseui:firebase-ui-database:3.1.0'compile'com.firebaseui:firebase-ui-auth:3.1.0'我的目标是使用来自Firebase数据库的数据填充Listview。我正在按照GithubFirebase上的指南进行操作以下方法应将数据绑定(bind)到ListView:privatevoidshowMessages(){Queryquery
我正在使用firebase开发android聊天。我试图研究这个问题,但找不到好的解决方案。希望有人能帮助我。我的问题是我希望RecyclerView在添加新项目时自动滚动。这是我的代码。@Nullable@OverridepublicViewonCreateView(LayoutInflaterinflater,ViewGroupcontainer,BundlesavedInstanceState){ViewrootView=inflater.inflate(R.layout.chatlayoutchat,container,false);Connectivityconnectivi
我有一个绑定(bind)到FirebaseRecyclerAdapter的RecyclerView。我需要根据用户使用spinner设置的值更新显示的数据。像这样:FirebaseDatabasedb=FirebaseDatabase.getInstance();DatabaseReferenceref=db.getReference("data");Queryquery=ref.orderByChild("index").startAt(loadPreferences()).endAt(loadPreferences());finalAdapterfireAdapter=newAda
我正在使用FirebaseUIAuth为了在我的应用程序中处理电子邮件登录,我启用了磁盘持久性,以便可以离线访问数据。但是在应用程序中登录一个小时后,我在logcat中收到此警告。W/PersistentConnection:pc_0-Authtokenrevoked:expired_token(Authtokenisexpired.)W/PersistentConnection:pc_0-Authenticationfailed:invalid_token(Invalidclaim'kid'inauthheader.)W/PersistentConnection:pc_0-Authe
由于需要根据Firebase/PlayServices版本使用FirebaseUI版本,我正在添加:compile'com.google.firebase:firebase-core:10.2.1'compile'com.google.firebase:firebase-auth:10.2.1'compile'com.firebaseui:firebase-ui-auth:1.2.0'该应用唯一可用的播放服务是:compile'com.google.android.gms:play-services-auth:10.2.1'但FirebaseUI库(1.2.0)仍然依赖于各种播放服务库