如何修复Android Studio中的“无法找到FirebaseRecyclerOptions”错误

时间:2019-04-06 03:15:27

标签: java android

我正在构建我的第一个android应用程序,并且我被困在这里。我需要在哪里修复此错误

我尝试检查gradle,但没有帮助

//swipe layout
    mSwipeRefreshLayout = findViewById(R.id.swipe_layout);
    mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
        @Override
        public void onRefresh() {
            if (getIntent() != null)
                foodId = getIntent().getStringExtra(Common.INTENT_FOOD_ID);
            if (!foodId.isEmpty() && foodId != null)
            {
                //Create request query
                Query query = ratingTbl.orderByChild("foodId").equalTo(foodId);

                // Error cant find symbol
                // This is exactly where i am stuck
                **FirebaseRecyclerOptions<Rating> options = FirebaseRecyclerOptions**
                LoadComment(foodId);
            }
        }
    });

0 个答案:

没有答案