Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File is Out of sync Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 16

[2014-05-05 09:05:20 - android-support-v7-appcompat] File is Out of sync
[2014-05-05 09:05:22 - android-support-v7-appcompat] Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 16

what I must do?

like image 364
Amon Olimov Avatar asked May 05 '14 04:05

Amon Olimov


2 Answers

Changing Compiler compliance level in Java Compiler settings to 1.6 solved the problem for me. (Project Properties -> Java Compiler -> Enable project specific settings -> Compiler compliance level -> 1.6)

like image 90
Iliya Gug Avatar answered Oct 23 '22 08:10

Iliya Gug


I disagree with @Iliya Gug. This error cause by setting Project build target to 4.0 (API 14). If change to Java 1.6, you'll can't use Java 1.7 sode style.
For ex: ArrayList myArrayList = new ArrayList<>();. To fix this, set your target to 4.4 (API 19) or higher.

like image 38
Justin Avatar answered Oct 23 '22 09:10

Justin