blakgeek/cordova-plugin-flurryanalytics

diamond operator is not supported in -source 1.6

Closed this issue · 8 comments

/Users/fullhdpixel/Projects/MyRoutes.IO/.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
Map<String, String> params = new
HashMap<>();
^
(use -source 7 or higher to enable diamond operator)
1 error

FAILURE: Build failed with an exception.

Ok, I will update.

$ java -version
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)

What version do I need?

Sorry I dont understand. This command shows 1.8. Can you show me direction to the answer? or just the answer directly?

$ java -version -source
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)

There's no way to specify which java version to use when compiling cordova apps through meteor.