简体   繁体   English

Android 开发需要 JDK 8(1.8)64 位

[英]Android development requires JDK 8(1.8)64-bit

I use unity 2020.3.13, i start to work with android game.我使用统一 2020.3.13,我开始使用 android 游戏。 I try to set the JDK with JDK that I got from Android Studio, but i get this error:我尝试使用从 Android Studio 获得的 JDK 设置 JDK,但出现此错误:

Incompatible Java version '16'
Android development requires JDK 8(1.8)64-bit. Having Java Runtime Environment(JRE) installed is not sufficient.

I'm confused because my JDK version is more than 8 but still can't.我很困惑,因为我的 JDK 版本超过 8,但仍然不能。 Do I have to install the exact JDK version 8?我必须安装确切的 JDK 版本 8 吗? And is it better to use Unity's provided JDK, SDK, NDK, and Gradle or the ones from Android Studio?使用 Unity 提供的 JDK、SDK、NDK 和 Gradle 还是使用 Android Studio 提供的更好?

Finally, it turned out that the problem was with my JDK installation.最后,事实证明问题出在我的 JDK 安装上。 i re-installed the android module in unity and used the jdk given by unity and everything worked fine我在unity中重新安装了android模块并使用了unity提供的jdk,一切正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM