Error:
Checking build tools versions...
************************************************************
You are attempting to build with an unsupportedJDK.
You use OpenJDK but only Sun/Oracle JDK issupported.
Please follow the machine setup instructions at
https://source.android.com/source/download.html
************************************************************
build/core/main.mk:152: *** stop. Stop.
Solution:
Choose your new version using the following command:
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
本文介绍了当使用OpenJDK尝试编译Android项目时遇到的错误信息及解决方案。错误提示指出只支持Sun/Oracle JDK,并提供了官方下载页面链接。解决方法包括使用命令更新Java版本选择。

6588

被折叠的 条评论
为什么被折叠?



