I am using Ionic 3 and java JDK 1.8, below is my ionic info and JDK info
Ionic:
Ionic CLI : 5.2.1 (/usr/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.3
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, (and 33 other plugins)
Utility:
cordova-res : not installed
native-run : 0.3.0 (update available: 1.2.2)
System:
Android SDK Tools : 26.1.1 (/home/siva.kalluru/Android/Sdk)
NodeJS : v10.20.1 (/opt/node-v10.20.1-linux-x64/bin/node)
npm : 6.14.4
OS : Linux 3.10
JDK :
java -version
openjdk version “1.8.0_262”
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)
javac -version
javac 1.8.0_262
echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0
After adding this plugin(https://ionicframework.com/docs/v3/native/native-geocoder/) I was getting the below error when I try to generate a build
mobileApp/platforms/android/app/src/main/java/cordova/plugin/nativegeocoder/NativeGeocoder.java:47: error: lambda expressions are not supported in -source 1.7
cordova.getThreadPool().execute(() -> reverseGeocode(latitude, longitude, finalOptions, callbackContext));
^
(use -source 8 or higher to enable lambda expressions)
In my build gradle compiler options is
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Everywhere it is 1.8 but still it is pointing to .7 I am not able to figure it out what is happening
can anyone please help me
1 post - 1 participant