Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set java version to 1.7 #213

Closed
duongnhatduy opened this issue May 25, 2015 · 2 comments
Closed

How to set java version to 1.7 #213

duongnhatduy opened this issue May 25, 2015 · 2 comments

Comments

@duongnhatduy
Copy link

I run to this error when trying to import FacebookSDK to android platform.

-compile:
[javac] Compiling 151 source files to /Users/duyduong/Dev/tns/lib/Android/FacebookAndroidSDK/bin/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] /Users/duyduong/Dev/tns/lib/Android/FacebookAndroidSDK/src/com/facebook/AccessToken.java:559: error: diamond operator is not supported in -source 1.5
[javac] ArrayList permissionsList = new ArrayList<>();
[javac] ^
[javac](use -source 7 or higher to enable diamond operator)
[javac] /Users/duyduong/Dev/tns/lib/Android/FacebookAndroidSDK/src/com/facebook/AccessTokenManager.java:224: error: diamond operator is not supported in -source 1.5
[javac] final Set permissions = new HashSet<>();
[javac] ^

The FacebookSDK version is 4.1.2.

@enchev
Copy link
Contributor

enchev commented May 26, 2015

This issue was moved to NativeScript/android#74

@lock
Copy link

lock bot commented Aug 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants