由于 Java 版本不正确,Android fastboot 构建失败
我正在尝试使用 本指南 编译适用于 Android 的 fastboot,但我出现以下错误:
************************************************************
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_23".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
请注意,我有正确的主要版本,但没有正确的次要版本。 Android makefile 真的这么挑剔吗?在尝试编译源代码而不是此修订版时,有没有办法可以使用 Java 1.6.0?我是否必须卸载 Java 才能实现此目的?
I'm trying to compile fastboot for Android using this guide, but I'm getting the following error:
************************************************************
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_23".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
Note that I have the correct major version, but not the correct minor version. Is the Android makefile really this picky? Is there a way that I can use Java 1.6.0 when trying to compile the source code instead of this revision? Do I have to uninstall Java to accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊。发布后不久,我发现了此指南 Ubuntu 32 位用户(为什么我在问题出现前的一个小时内找不到它,我不知道......)。我现在可以使用 fastboot 了。只是想我会将此信息留在这里,以防其他人遇到此问题。 :)
AH. Shortly after posting I discovered this guide for Ubuntu 32-bit users (why I couldn't find it in the hour leading up to the question, I don't know...). I now have fastboot working. Just thought I'd leave this info here in case someone else encounters this problem. :)