1: 在 LeiBieAdapter 里面将
public LeiBieAdapter 写成了public void LeiBieAdapter;
public class LeiBieAdapter extends RecyclerView.Adapter<LeiBieAdapter.LeiBieViewHolder>{ Context context; ArrayList<LeiBieEntity.DataEntity.ReturnDataEntity.RankinglistEntity> list; public void LeiBieAdapter(Context context,ArrayList<LeiBieEntity.DataEntity.ReturnDataEntity.RankinglistEntity> list){ this.context = context; this.list = list; }。。。。。。。
2:然后在调用的时候总报错:
adapter = new LeiBieAdapter(ret.getContext(),new ArrayList<LeiBieEntity.DataEntity.ReturnDataEntity.RankinglistEntity>());
3:然后将第一部里面的void 删除了就好了