是否可以使用Java 8 Android开发? [英] Is it possible to use Java 8 for Android development?
问题描述
在网上搜索,目前尚不清楚,如果Java的8支持Android开发与否。
Searching the web, it is not clear if Java 8 is supported for Android development or not.
在我下载/安装的Java 8,可以在任何官方的文档说的Java 8或不支持Android开发某一个点我。
Before I download/setup Java 8, can some one point me at any "official" documentation that say Java 8 is or is not supported for Android development.
推荐答案
我认为这是言之尚早,如果Java的8适用于Android的发展,官方的Android需要Java 6的JDK中提到,在此页面的底部: <一href="https://developer.android.com/sdk/installing/installing-adt.html">https://developer.android.com/sdk/installing/installing-adt.html
I think it is too early to say if Java 8 is suitable for Android development, officially Android needs the Java 6 JDK as mentioned at the bottom of this page: https://developer.android.com/sdk/installing/installing-adt.html
如果您安装了Java 8 JDK,然后给它一个尝试,如果有问题,似乎试图从窗口菜单→ preferences →的Java设置编译器1.6在Eclipse →编译。 顺便说一句,这是我的作品与Java 7:
If you installed the Java 8 JDK, then give it a try, if any problems appears try to set the compiler as 1.6 in Eclipse from window menu → Preferences → Java → Compiler. By the way, this is works for me with Java 7:
按照安装Android的工作室的网页,来构建应用程序为Android 5.0高,JDK 7是必需的:
According to the Installing Android Studio web page, to build apps for Android 5.0 and higher, JDK 7 is required:
在您设置Android的工作室,请确保已安装了JDK 6或更高版本(JRE的是不够)-jdk 7需要开发的Android 5.0及更高版本时。要检查是否安装了JDK(以及哪个版本),打开一个终端,键入的javac -version
。如果JDK是不可用或版本比6,去下载JDK 。
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, go download JDK.
这篇关于是否可以使用Java 8 Android开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!