diamond operator is not supported in -source 1.6
Closed this issue · 8 comments
thijssmudde commented
/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.
blakgeek commented
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 ***@***.***> 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
<#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.
thijssmudde commented
Ok, I will update.
thijssmudde commented
$ 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?
blakgeek commented
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 ***@***.***> wrote:
Reopened #25
<#25>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
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.
thijssmudde commented
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)
blakgeek commented
…
On Thu, Sep 21, 2017 at 10:31 AM, fullhdpixel ***@***.***> 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
<#25 (comment)>,
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.
thijssmudde commented
There's no way to specify which java version to use when compiling cordova apps through meteor.
blakgeek commented
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 ***@***.***> 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
<#25 (comment)>,
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.