I am trying to work with Java 1.7 in IntelliJ (Android Studio is enough), and I believe that I already have Java 1.7, but for some reason it insists that my version is Java 1.6 for (API 22). Here are some screenshots:
I have the following in build.gradle
:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
I can use 1.7 functions, but 1.6 is displayed in the dialog box, which makes me feel very uneasy. Did I miss something?
thanks
source
share