Hello, I have been following the book and have run into an error which I do not see a solution for.
Apparently, Android Studio does not like this line in CrimeListFragment.Java:
private void updateUI(){
CrimeLab crimeLab = CrimeLab.get(getActivity());
List crimes = crimeLab.getCrimes(); //This is the line causing problems
mAdapter = new CrimeAdapter(crimes);
mCrimeRecyclerView.setAdapter(mAdapter);
}
Here is the method in CrimeList.Java
public Crime getCrimes(UUID id){
for (Crime crime : mCrimes){
if (crime.getId().equals(id)){
return crime;
}
}