Java – Android Studio, Java 8, and functions

Android Studio, Java 8, and functions… here is a solution to the problem.

Android Studio, Java 8, and functions

I installed the latest Java 8 and the latest Android Studio on my Mac. I can’t find java.util.function in Android Studio. This leads me to believe that it doesn’t use Java 8. I searched for a log time and the only Java on my Mac is Java 8. I also checked the project structure, which points to Java 8. I reinstalled Android Studio, created a new project, but I still can’t import java.util.function. Is Android Studio really working with Java 8? Any suggestions on how to access java.util.function?

Related Problems and Solutions