I was very excited hearing about Google's desugar project since I have to support minSdkVersion 17
.
I went ahead and tried a simple Java 8 example:
List<String> myList = Arrays.asList("element1","element2","element3");
myList.forEach(element -> System.out.println(element));
However, Android Studio says Call requires API level 24 (current min is 17): java.lang.Iterable#forEach
Google issued a table about what features are supported. Does their documentation mention whether or not Iterable.forEach()
is supported in any minSdkVersion?