eclipse 在 Windows 7 中使用 Android SDK R13 的 JDK 7

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6873395/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:44:37  来源:igfitidea点击:

JDK 7 with Android SDK R13 in windows 7

androideclipsejava-7

提问by Shahjalal

I want to use JDK 7 64bit for android development. But in system requirement of android development it is said that it need's "JDK 5 or JDK 6". Is there any problem if i want to use latest JDK 64bit with latest android SDK and new eclipse IDE 64bit?

我想使用 JDK 7 64 位进行 android 开发。但是在android开发的系统要求中说它需要“JDK 5或JDK 6”。如果我想将最新的 JDK 64 位与最新的 android SDK 和新的 Eclipse IDE 64 位一起使用,有什么问题吗?

Note:

笔记:

回答by Ice Phoenix

JDK 7 64-bit works without issue on Windows7 64-bit, however you will probably need to download both the 32-bit and 64-bit versions of the SDK. I'm not sure why they haven't solved this issue but the fix works, and JDK 7 works fine with Android.

JDK 7 64 位在 Windows7 64 位上没有问题,但是您可能需要下载 32 位和 64 位版本的 SDK。我不知道为什么他们还没有解决这个问题,但修复是有效的,JDK 7 在 Android 上运行良好。

回答by Jonathan Perry

The JDK detection problem in the Android SDK is a known (and annoying) issue.

Android SDK 中的 JDK 检测问题是一个已知(且令人讨厌)的问题。

To solve this, after getting the message that the SDK wasn't detected, just hit the "Back" button and then the "Next" button again and it should detect the JDK properly

为了解决这个问题,在收到未检测到 SDK 的消息后,只需点击“返回”按钮,然后再次点击“下一步”按钮,它应该可以正确检测到 JDK

回答by Shawn Walton

Some systems I installed it on worked with the 64-bit JDK, and some didn't detect it, requiring me to install the 32-bit one as well. Either way, it worked with Eclipse x64 just fine.

我安装它的一些系统与 64 位 JDK 一起工作,有些系统没有检测到它,要求我也安装 32 位的。无论哪种方式,它都可以与 Eclipse x64 配合使用。