There’s a plugin Im using for analytics which makes use of java 1.8, but Meteor cordova uses 1.6 on my laptop.
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
How can I set the java version for building cordova apps?
logs
/.meteor/local/cordova-build/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:284:
error: diamond operator is not supported in -source
1.6\n Map<String, String> params = new
HashMap<>();\n
^\n (use -source 7 or higher to enable diamond
operator)\n1 error\n\nFAILURE: Build failed with an
exception.\n\n* What went wrong:\nExecution failed for
task \':compileDebugJavaWithJavac\'.\n> Compilation
failed; see the compiler error output for details.\n\n*
Try:\nRun with --stacktrace option to get the stack
trace. Run with --info or --debug option to get more
log output.\n at ChildProcess.whenDone