我认为太早说,如果Java 8适合Android开发,官方Android需要Java 6 JDK如本页底部所述:
https://developer.android.com/sdk/installing/installing-adt.html
如果安装了Java 8 JDK,那么试试,如果出现任何问题,尝试在Eclipse中将编译器设置为1.6,从窗口菜单→首选项→Java→编译器。
顺便说一句,这是工作对我来说与Java 7:
更新:
根据Installing Android Studio网页,要构建适用于Android 5.0及更高版本的应用,需要JDK 7:
Before you set up Android Studio, be sure you have installed JDK 6 or higher (the JRE alone is not sufficient)—JDK 7 is required when developing for Android 5.0 and higher. To check if you have JDK installed (and which version), open a terminal and type javac -version. If the JDK is not available or the version is lower than 6, 07002.
更新2:
正式:
Java 7 or higher is required if you are targeting Android 5.0 and
higher.
这是隐含的宣布Java 8将工作,这是在eclipse插件ADT页面中提到,但没有提到在Android工作室页面或尚未更新。
非正式:安装多个JDK并尝试。
Java 8: