问题
Do Android Developers Tools support JAVA 7 API up to this date? I'm trying to build an Android app using JAVA 7 and I was wondering about this thing.
回答1:
While you can write code in Java 7, the Android Systems that run it only support upto Java 6, so 7 features like switch-case on Strings fail.
As of Build tools 19, Java 7 is now supported.
回答2:
No, the android documentation is pretty clear about this. Only Java 6.
Also, be sure to download the Oracle JDK 6 (the Java Runtime is not sufficient).
来源:https://stackoverflow.com/questions/15848332/does-adt-support-java-7-api