解决Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 4

有时候我们可能需要将项目的版本降低,比如4.4降低到2.2这样的,可能会遇到类似于这样的错误

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

总之就是jdk的问题了,解决方案是:Righ click on your project > properties > Java compiler > enable "project specific settings" Set Compiler compliance level to 1.6 re Build your project

也就是将编译的JDK进行修改了一下

参考自:http://www.cnblogs.com/xiaokang088/p/3829205.html

原文地址:https://www.cnblogs.com/tianzhijiexian/p/4083532.html