-
-
Notifications
You must be signed in to change notification settings - Fork 136
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 #74
Comments
Hi @duongnhatduy export JAVA_HOME=jdk-install-dir
export PATH=$JAVA_HOME/bin:$PATH |
Hi @rosen-vladimirov , Does this problem relates to the compiler? |
Hi @duongnhatduy , echo $JAVA_HOME |
@rosen-vladimirov |
as @rosen-vladimirov said the JAVA_HOME should point to jdk folder: |
From @duongnhatduy on May 25, 2015 11:40
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.
Copied from original issue: NativeScript/NativeScript#213
The text was updated successfully, but these errors were encountered: