Does ADT support Java 7 API [closed]

孤者浪人 提交于 2019-11-27 13:28:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!