問題描述
我是安卓開發的新手.我已經在我的電腦中安裝了 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模板網!