I have a project on Android Studio, but it's not compiling because of this error:
bootstrap class path not set in conjunction with -source 1.6
I've searched and I understand that it is a problem with JDK, but how can I fix it inside Android Studio? The version of java running is 1.8.
android/build.gradle
jdt {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
defaultConfig {
applicationId "com.mygdx.game"
minSdkVersion 9
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
desktop/build.gradle
apply plugin: "java"
sourceCompatibility = 1.6
sourceSets.main.java.srcDirs = [ "src/" ]
Thanks for the help.