I have a strange error message when I want to use the result of a Server query and an offline SQLite request.
Error message in Android Studio:
Incompatible types:
Required: java.util.Array.list
Found: java.util.List
ArrayList is declared: private ArrayList<Jamky> campojamkyList;
and assigned: campojamkyList = new ArrayList<>();
The array returned is in both cases the same:
campolist = {ArrayList@1235} size = 18
0 = {Jamky@1235 }
campoid = 23
delka = 330
.......
When I want to assign the result of the SqLite Query
campolist = db.getAllJamky(campo);
I get the error message.
Does anybody has a clue why this strange behaviour occurs or some hints how to maybe convert the util.list to an Array.list?