Warning: [options] bootstrap path not installed with -source 1.7 1 warning

I get a build time warning in the gradle console:

warning: [options] path to bootstrap not installed with -source 1.7 1 warning

How can i fix this?

Any help is appreciated!

+6
source share
3 answers

Just enter the following code inside buildscriptthe project level tag build.gradle:

tasks.withType(JavaCompile) {
    targetCompatibility = '1.7'
    sourceCompatibility = '1.7'
    options.setBootClasspath("PATH_TO_JAVA_7_JRE/lib/rt.jar")
}

Just replace PATH_TO_JAVA_7_JREon your way.

, , , , , . , !

+3

Android Studio JDK , , JDK:

  • → → SDK → JDK ()
0

sourceCompatibility = 1,7 targetCompatibility = 1,7

0

Source: https://habr.com/ru/post/1671461/


All Articles