dimanche 10 mai 2015

Facebook android sdk needs java 1.7 to work?

I've imported the Facebook android sdk (version 4.1.1) into my project and I've encountered some errors such as

ArrayList<String> permissionsList = new ArrayList<>();

which throws an error that it needs java compiler 1.7 to work.

Then when I change the java compiler of the project to 1.7 and it gives another error that for using java 1.7 my project needs to be compiled with android 4.4.

So to make the downloaded facebook sdk to work I have to change it's android version to 4.4 and java compiler to 1.7 but my own project uses android version 14 which throws an error:

Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 14

what should I do to overcome this issue?? any suggestions ?

Aucun commentaire:

Enregistrer un commentaire