无法在 Windows 7 上的 Eclipse 插件下添加 Android - 不可见
我试图寻找类似的问题,但似乎找不到。
我运行:
- Windows 7
- Java SE Developement Kit x64
- Eclipse Helios(从 Eclipses 主页下载 --> 下载 --> Eclipse IDE for Java EE Developers --> 64 位)
- “Android SDK Windows”
我一直在关注 Android 开发者主页上的指南。
我可以正常启动 Eclipse。在“帮助”下 -->安装新软件... 在这里,我自己给它命名(Android Plugin Test),并在位置下输入“
现在已安装以下内容: - 安卓DDMS - 安卓开发工具 - 面向 Java EE 开发人员的 Eclipse IDE
所以一切看起来都很好。 但 .. 当我转到窗口时 -->首选项中缺少“Android”。 我在查看 General、Ant、Data Management 等方面没有任何问题。
所以我的问题是,问题出在哪里?
如前所述,我下载了 Android SDK,但是当我尝试运行安装程序时,我收到此错误,关于缺少 Java:
http://img827.imageshack.us/img827/600/javaproblem.jpg
这就是我迷路的地方。 因为,在已安装的程序下,它说: - Java(TM) SE 开发套件 6 Update 21(64 位)
是的,我在安装 Java 后重新启动了。
由于某些奇怪的原因,无法以任何兼容性运行 SDK 设置。它是灰色的 (是的,我是管理员,我在其他程序上没有任何问题)
我检查了 Android SDK 的要求,它说 Windows XP & Vista,但不是7..但据我所知,其他人也能正常工作。
那么..我做错了什么? 你有什么解决办法吗?
如果我需要下载其他 Java 版本(或其他任何内容),请提供链接。
I've tried to search for similar problems, but can't seem to find it.
I run:
- Windows 7
- Java SE Developement Kit x64
- Eclipse Helios (downloaded here from Eclipses homepage --> Downloads --> Eclipse IDE for Java EE Developers --> 64 Bit)
- "Android SDK Windows"
I've been following the guide from the Android Developers homepage.
I can launch Eclipse just fine. Under Help --> Install New Software ...
Here, I give it a name myself (Android Plugin Test), and under location, I've typed "http://dl-ssl.google.com/android/eclipse", as said in the link.
Then it find Developement Kit, and I install it and all that & restart Eclipse.
The following are now installed:
- Android DDMS
- Android Development Tools
- Eclipse IDE for Java EE Developers
So everything seems fine.
BUT ..
When I go to Window --> Preferences, "Android" is missing.
I have no problems seeing General, Ant, Data Management etc.
So my question is, what's the problem ?
As said, I downloaded Android SDK, but when I try to run the setup, I get this error, about missing Java:
http://img827.imageshack.us/img827/600/javaproblem.jpg
And that's where I'm lost.
Because, under installed programs, it says:
- Java(TM) SE Developement Kit 6 Update 21 (64-bit)
And yes, I have restarted after installing Java.
For some odd reason, it's not possible for to run the SDK setup with any compatibility. It's greyed out
(Yes, I'm admin, and I don't have any problems on other programs)
I checked the Requirements for Android SDK, and it says Windows XP & Vista, but not 7 .. But as far as I know, other people got it to work.
So .. What am I doing wrong ?
Do you have any solutions ?
If I need to download other Java versions (or anything else), please provide links.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你需要注意三件事......我也遇到过类似的问题,所以可以告诉你如何解决:
1)下载Eclipse-> 32 位版本...因为您的 SDk 是 32 位...确保您的 JDK 是 32 位...
2)下载32位版本后,先安装Android ADT……
3)然后进入首选项->安卓->在这里给出 SDK 路径......然后下载平台和示例......
请随时询问您是否仍然无法解决它,因为我遇到了类似的问题......
You need to take care of three things...I too faced similar problems so can tell you how to go about it:
1) Download Eclipse -> 32 bit version...since your SDk is 32 bit...make sure ur JDK is 32 bit...
2) After downloading 32 bit version install Android ADT first......
3)Then go to Preference-> Android -> Give the SDk path here......n then download the platforms and samples....
Feel free to ask if your still unable to get it sorted coz i faced similar problems....
如果我没记错的话,您需要手动将 Java 的 /bin 路径添加到您的路径环境变量中。右键单击打开计算机,转到高级系统设置,然后转到环境变量并将完整路径添加到 Path 变量。例如,我将
;C:\Program Files\Java\jre6\bin
添加到现有字符串中。If I remember correctly, you need to add your Java's /bin path to your path environment variable by hand. Open your Computer by right-clicking, go to Advanced system settings, then Environment Variables and add the full path to the Path variable. For example, I added
;C:\Program Files\Java\jre6\bin
to the existing string.