我是安卓开发的新手.我已经在我的电脑中安装了 eclipse、java 11 和 android sdk 工具.但是当我尝试构建一个项目时,它说要升级工具.但是我已经安装了最新的sdk.
I am new to android development. And I have installed eclipse, java 11 and android sdk tools in my computer. But when I try to build a project it says that to upgrade tools. But I have installed the latest sdk.
当我在互联网上阅读时,我发现 android 并不完全支持 java SE,它主要支持 java SE 6 和 7.-但这是一篇旧帖子.
When I'm reading in internet I found that android doesn't fully support java SE and it mostly support for java SE 6 and 7. - but this was an old post .
我发现android不完全支持java 11.
I found that android do not support java 11 completely.
我的问题是,什么是完全支持android的JDK版本,我是否必须在我的电脑上安装2个版本的JDK?
My question is, what is the JDK version that fully support android and do I have to install 2 versions of JDK s in my computer?
正如官方文档所说:
Android Studio 3.0 及更高版本支持所有 Java 7 语言功能和Java 8 语言特性的一个子集,因平台版本而异
Android Studio 3.0 and later supports all Java 7 language features and a subset of Java 8 language features that vary by platform version
所以JDK 7是完全支持的,如果你想使用JDK 8的一些特性,你应该进行适当的设置.
so JDK 7 is fully supported, and if you want to use some JDK 8 features, you should Make the appropriate settings.
这是使用Java 8的参考链接
android studio 不支持高于 8 的 java 版本.
and android studio doesn't support the java version higher than 8.
这篇关于java 11 支持安卓吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!