According to the official documentation, Collections.singletonList
is added on API 26. I have targetSdkVersion 25
and minSdkVersion 19
and my app still compiles and runs perfectly on emulators/devices below 26 when I use this method.
How is this possible ?
Asked
Active
Viewed 42 times
1

giorgos.nl
- 2,704
- 27
- 36
-
2That feels like a documentation bug. – CommonsWare Oct 02 '17 at 15:46
-
2it is indeed a bug in the documentation – Blackbelt Oct 02 '17 at 15:49