FirebaseRecyclerAdapter <t,vh>类中的构造函数FirebaseRecyclerAdapter不能应用于给定类型;

时间:2018-12-10 04:47:10

标签: java android

我正在开发一个食品订购应用程序,并且试图将数据从火力源获取到我的INFO | curator-framework - 3.1.0 | New config event received: [115, 101, 114, 118, 101, 114, 46, 49, 61, 76, 69, 65, 45, 51, 48, 53, 48, 57, 51, 46, 83, 69, 82, 86, 73, 67, 69, 83, 46, 69, 83, 82, 73, 65, 85, 83, 84, 82, 65, 76, 73, 65, 46, 67, 79, 77, 46, 65, 85, 58, 50, 49, 56, 50, 58, 50, 49, 57, 48, 58, 112, 97, 114, 116, 105, 99, 105, 112, 97, 110, 116, 59, 48, 46, 48, 46, 48, 46, 48, 58, 50, 49, 56, 49, 10, 118, 101, 114, 115, 105, 111, 110, 61, 49, 48, 48, 48, 48, 48, 48, 48, 48] INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-framework - 3.1.0 | State change: SUSPENDED INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-framework - 3.1.0 | State change: RECONNECTED INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 INFO | curator-framework - 3.1.0 | New config event received: [115, 101, 114, 118, 101, 114, 46, 49, 61, 76, 69, 65, 45, 51, 48, 53, 48, 57, 51, 46, 83, 69, 82, 86, 73, 67, 69, 83, 46, 69, 83, 82, 73, 65, 85, 83, 84, 82, 65, 76, 73, 65, 46, 67, 79, 77, 46, 65, 85, 58, 50, 49, 56, 50, 58, 50, 49, 57, 48, 58, 112, 97, 114, 116, 105, 99, 105, 112, 97, 110, 116, 59, 48, 46, 48, 46, 48, 46, 48, 58, 50, 49, 56, 49, 10, 118, 101, 114, 115, 105, 111, 110, 61, 49, 48, 48, 48, 48, 48, 48, 48, 48] INFO | curator-client - 3.1.0 | Connection string changed to: LAPTOP-3050:2181 ERROR | com.esri.ges.persistence.zookeeper.zk-persistenceutility - 10.5.1 | KeeperErrorCode = ConnectionLoss for /geoevent/config/clusters/default/deploy/test-0.0.1.jar org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /geoevent/config/clusters/default/deploy/test-0.0.1.jar at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)[23:org.apache.zookeeper.zookeeper-geoevent:3.5.0] at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)[23:org.apache.zookeeper.zookeeper-geoevent:3.5.0] at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1155)[23:org.apache.zookeeper.zookeeper-geoevent:3.5.0] at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1040)[386:curator-framework:3.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1023)[386:curator-framework:3.1.0] at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:67)[387:curator-client:3.1.0] at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:99)[387:curator-client:3.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1020)[386:curator-framework:3.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:501)[386:curator-framework:3.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:491)[386:curator-framework:3.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl$4.forPath(CreateBuilderImpl.java:367)[386:curator-framework:3.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl$4.forPath(CreateBuilderImpl.java:309)[386:curator-framework:3.1.0] at com.esri.ges.fabric.internal.ZKPersistenceUtility.copyInputStreamToPath(ZKPersistenceUtility.java:338)[77:com.esri.ges.persistence.zookeeper.zk-persistenceutility:10.5.1] at Proxy73615e00_3b42_4973_8167_02adcb1d58c6.copyInputStreamToPath(Unknown Source)[:] at Proxyca093291_fc2b_46b8_8c21_c244986150ba.copyInputStreamToPath(Unknown Source)[:] at com.esri.ges.registry.deploy.internal.DeployFolderRegistryImpl.copyIntoZooKeeper(DeployFolderRegistryImpl.java:73)[169:com.esri.ges.registry.internal-deploy-registry:10.5.1] at com.esri.ges.registry.deploy.internal.DeployFolderRegistryImpl.access$500(DeployFolderRegistryImpl.java:37)[169:com.esri.ges.registry.internal-deploy-registry:10.5.1] at com.esri.ges.registry.deploy.internal.DeployFolderRegistryImpl$LookForChanges.run(DeployFolderRegistryImpl.java:141)[169:com.esri.ges.registry.internal-deploy-registry:10.5.1] at java.lang.Thread.run(Thread.java:745)[:1.8.0_121] 菜单中。我尝试使用基于火力的recycler,但不断收到错误消息。错误和我的代码如下所示。

  

错误:类中的构造函数FirebaseRecyclerAdapter   FirebaseRecyclerAdapter不能应用于给定类型;           FirebaseRecyclerAdapter适配器=新的FirebaseRecyclerAdapter(Category.class,R.layout.menu_item,MenuViewHolder.class,类别   ){                                                                     ^必需:找到FirebaseRecyclerOptions:   类,整数,类,数据库引用原因:   实际参数和形式参数列表的长度不同,其中T,VH为   类型变量:       T扩展了在FirebaseRecyclerAdapter类中声明的Object       VH扩展了在类FirebaseRecyclerAdapter中声明的ViewHolder注意:某些输入文件使用或覆盖不推荐使用的API。注意:   使用-Xlint:deprecation重新编译以获取详细信息。

这是我的源代码。

recycleradapter

0 个答案:

没有答案