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

Java compiling issue: buildozer uses obsolete source value 1.5 #619

Closed
saband opened this issue Feb 6, 2018 · 2 comments
Closed

Java compiling issue: buildozer uses obsolete source value 1.5 #619

saband opened this issue Feb 6, 2018 · 2 comments

Comments

@saband
Copy link

saband commented Feb 6, 2018

I'm trying to compile project with Facebook SDK and there is an error:

DEBUG: [javac] Compiling 154 source files to /home/saband/python/kivy/Simple-Facebook-Login-on-Kivy/facebook-android-sdk-4.5.1/facebook/bin/classes
DEBUG: [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
DEBUG: [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
DEBUG: [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
DEBUG: [javac] /home/saband/python/kivy/Simple-Facebook-Login-on-Kivy/facebook-android-sdk-4.5.1/facebook/src/com/facebook/AccessToken.java:559: error: diamond operator is not supported in -source 1.5
DEBUG: [javac] ArrayList permissionsList = new ArrayList<>();
DEBUG: [javac] ^
DEBUG: [javac] (use -source 7 or higher to enable diamond operator)

Full log (level 2) here: https://pastebin.com/mADD63ex

I have openjdk-8-jdk installed and I don't know why buildozer uses source 5 and how to correct it (where I can "use -source 7 or higher" as recommended.

@inclement
Copy link
Member

Are you using python-for-android master, and a recent SDK? I think p4a sets a more appropriate source value in this case.

@saband
Copy link
Author

saband commented Feb 6, 2018

I'm sorry, it's really issue of SDK. How to fix it: open android-sdk-21/tools/ant/build.xml and change

<property name="java.target" value="1.5" />
<property name="java.source" value="1.5" />

@saband saband closed this as completed Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants