Using the Retrolambda framework (to support some of the java8 features),
faced with such a problem, some functions related to references to methods work only with api24 and more. For example:
Function<Double, Double> Sqr = val -> val * val; textView.setText("Square: " + Double.toString(Sqr.apply(2.0)) ); the Sqr.apply(2.0) compiler emphasizes and says that you need a minimum api24 (I have a minimum of api15).
Another example:
Consumer<Integer> fun1 = Person::increaseScore; fun1.accept(12); accept(12); method accept(12); The same mistake is underlined.
Is this something I incorrectly configured in Retrolambda or the above things can really be performed only for android version api24 and higher?
Thank.