O solve
CodePudding user response:
//need to be in the build. Bradle specify JDK version (this seems to be you want to 1 _7)
Android {
CompileOptions {
SourceCompatibility JavaVersion. VERSION_1_8
TargetCompatibility JavaVersion. VERSION_1_8
}
}
CodePudding user response:
Now most of the android be java8, java8 under installationCodePudding user response:
Upgrade to JDK 1.8, remember environmental variables are changed