I am trying to build a Cordova project using gradle as a build tool. In the Cordova project I have my own plugin that requires Java 1.7.
In the build.gradle that com
The next rows have been found and updated.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
to
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
The main point is changing build.gradle file that are located in the next folder \platforms\android\ But keep in mind there are also presented other build.gradle files with other paths.