简体   繁体   English

在Eclipse Helios中安装Android SDK的麻烦

[英]Install trouble for Android SDK in Eclipse Helios

EDIT: I fixed it by not installing the NDK Development stuff. 编辑:我通过不安装NDK开发的东西来修复它。 I don't know what it is, or what it does, but it fixed my problem. 我不知道它是什么或它做什么,但是它解决了我的问题。

I'm on Windows 64-bit, using Eclipse Helios, and trying to install the latest Android SDK. 我在使用Eclipse Helios的Windows 64位系统上,并尝试安装最新的Android SDK。 So far, I've been able to download and install the SDK Manager and successfully ran through its stuff. 到目前为止,我已经能够下载并安装SDK Manager并成功运行了其中的所有内容。

The trouble comes in when I try to install inside of Eclipse (Help -> Install New Software). 当我尝试在Eclipse中安装时会出现麻烦(帮助->安装新软件)。 Every time I try to install using either the URL address (http://developer.android.com/sdk/installing/installing-adt.html) or the .zip file I get this error: 每次我尝试使用URL地址(http://developer.android.com/sdk/installing/installing-adt.html)或.zip文件进行安装时,都会出现此错误:

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, >     phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!

The internet doesn't seem to have any answers that I can find. 互联网似乎没有我能找到的任何答案。 Thanks! 谢谢!

Run eclipse as administrator and install Android SDK. 以管理员身份运行eclipse并安装Android SDK。

You must use https://dl-ssl.google.com/android/eclipse/ for SDK installation. 您必须使用https://dl-ssl.google.com/android/eclipse/进行SDK安装。

See Install ADT Plugin 请参阅安装ADT插件

By the way, which version of java are you using? 顺便问一下,您使用的是哪个Java版本? I reckon the error is possibly an eclipse bug, related to Java 1.7. 我认为该错误可能是与Java 1.7相关的Eclipse错误。

Try JRE 1.6 and see if it works! 尝试使用JRE 1.6,看看它是否有效!

You need the following tool for starting the android devolopment (1) Eclipse ide (2) ADT for eclipse (android plugin for eclipse) (3) Android SDK 您需要以下工具来启动android开发(1)Eclipse ide(2)eclipse的ADT(eclipse的android插件)(3)Android SDK

You get a brief idea about each of these steps from the following link http://codeglympse.blogspot.in/2012/10/installing-eclipse-and-android-sdk.html 您可以通过以下链接http://codeglympse.blogspot.in/2012/10/installing-eclipse-and-android-sdk.html简要了解这些步骤。

Late to the conversation... 谈话迟到了...

But I have found this error when trying to install packages, not at all associated with Android, from older Eclipse versions, which by now includes Helios. 但是,当我尝试从较早的Eclipse版本(目前包括Helios)安装软件包时,却发现了与Android完全无关的软件包时,发现了此错误。 It actually took me a while to figure out all those Eclipse project names are actually versions. 实际上,我花了一段时间才弄清楚所有这些Eclipse项目名称实际上都是版本。 At the time of this writing, Eclipse Kepler is the latest, once I upgraded (pretty much a fresh install) to Kepler and tried again to install the packages, everything worked fine. 在撰写本文时,Eclipse Kepler是最新的,一旦我升级(几乎是全新安装)到Kepler并再次尝试安装软件包,一切就可以正常进行。

Hopes this is helpful to somebody. 希望这对某人有帮助。

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

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