Closed thijssmudde closed 6 years ago
Is there a reason you're still using java 6? If it's a requirement you'll probably want to fork the code and remove all of the modern code.
On Mon, Sep 11, 2017 at 5:07 PM, fullhdpixel notifications@github.com wrote:
/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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blakgeek/cordova-plugin-flurryanalytics/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyU3vWXt4nd5YPgYd1CJ-b6phqM3VmDks5shZ7fgaJpZM4PTwtl .
-- Try TagIt4Me https://ti4.me/app, a free, community-driven mobile app that lets shoppers search, discover and share the location of nearby products, prices and deals.
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?
The isn't your version of java you're compiling with, it's the the flag "-source 1.6". Setting the flag effectively says to compile as if you're using java 1.6. If you google it you'll quickly find the change you need to make.
On Thu, Sep 21, 2017 at 4:40 AM, fullhdpixel notifications@github.com wrote:
Reopened #25 https://github.com/blakgeek/cordova-plugin-flurryanalytics/issues/25.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blakgeek/cordova-plugin-flurryanalytics/issues/25#event-1258936434, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyU3j2IAyYewiDQBKzAu1T7Kn3Xq0pQks5skiDkgaJpZM4PTwtl .
-- Try TagIt4Me https://ti4.me/app, a free, community-driven mobile app that lets shoppers search, discover and share the location of nearby products, prices and deals.
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)
https://stackoverflow.com/questions/15492948/javac-source-and-target-options
On Thu, Sep 21, 2017 at 10:31 AM, fullhdpixel notifications@github.com wrote:
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)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blakgeek/cordova-plugin-flurryanalytics/issues/25#issuecomment-331174621, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyU3ofKOBes11w2s-v89wvhtxbEMNQCks5sknMqgaJpZM4PTwtl .
-- Try TagIt4Me https://ti4.me/app, a free, community-driven mobile app that lets shoppers search, discover and share the location of nearby products, prices and deals.
There's no way to specify which java version to use when compiling cordova apps through meteor.
I'm not sure what to tell you then. But the expectation that all java code you use will written to target java 1.6 is pretty unreasonable. You might want to open a bug with Meteor.
On Fri, Sep 22, 2017 at 7:56 AM, fullhdpixel notifications@github.com wrote:
There's no way to specify which java version to use when compiling cordova apps through meteor.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blakgeek/cordova-plugin-flurryanalytics/issues/25#issuecomment-331427221, or mute the thread https://github.com/notifications/unsubscribe-auth/AAyU3kStMKo3rAcElDk5lXGv8XmwPsI3ks5sk6CIgaJpZM4PTwtl .
-- Try TagIt4Me https://ti4.me/app, a free, community-driven mobile app that lets shoppers search, discover and share the location of nearby products, prices and deals.
/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.