在配置Android SDK中的严重问题与Eclipse严重、问题、Android、SDK

2023-09-05 23:38:49 作者:爱情大课堂

我有在与Eclipse ADT配置严重问题。我使用Windows 7家庭premium版本。

I am having serious problems in Configuring ADT with Eclipse. I am using Windows 7 Home Premium version.

在Eclipse中(64位),我现在用的就是:

The Eclipse (64 bit) that I am using is:

Eclipse Classic 3.7.1 
Eclipse Java EE IDE for Web Developers.
Version: Indigo Release
Build id: 20110615-0604

Java的code运行没有在这个Eclipse的任何问题。对于运行Android:

Java code runs without any problem in this Eclipse. For running Android:

起初,我走进了Eclipse的>帮助菜单,然后安装新软件。 点击添加,将其命名为ADT和位置使用: http://dl-ssl.google.com/机器人/月食。

at first, I went into Eclipse-> Help menu and then Install New Software. Clicked Add, named it ADT and for location used: http://dl-ssl.google.com/android/eclipse.

这是新出现的窗口,我点击了所有这些箱子,然后选择下一步。高达至此,一切都OK了,安装ADT,我被要求重新启动Eclipse。当Eclipse启动后,一个新的窗口,并要求我要么安装Android软件开发工具包(SDK),或者选择现有的SDK位置。我选择了安装Android软件开发工具包(SDK)(我查了所有的选项)。我已经设置SDK位置:C:\ My_Workspace \ Android_SDK。一切结束后,我看到Eclipse控制台两个错误:

The new window that appears, I have clicked all of those boxes and choose Next. Upto this point, everything is OK, ADT is installed and I am be asked to restart Eclipse. When Eclipse launches, a new window appears and asks me to either install the Android Software Development Kit (SDK) or choose an existing SDKs location. I chose to install Android Software Development Kit (SDK) (I checked all the options). I have set SDK location to: C:\My_Workspace\Android_SDK. After everything finishes I see two errors in the Eclipse console:

[2012-01-02 14:29:37 - DDMS] DDMS files not found: C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\platform-tools\adb.exe C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\tools\hprof-conv.exe C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\tools\traceview.bat

[2012-01-02 14:30:47 - DDMS] DDMS files not found: C:\My_Workspace\Android_SDK\platform-tools\adb.exe C:\My_Workspace\Android_SDK\tools\hprof-conv.exe C:\My_Workspace\Android_SDK\tools\traceview.bat

请注意,我试图安装SDK在Eclipse中所给出的默认位置。但我看到了同样的错误。

Note, I have tried to install the SDK at the default location given by Eclipse. But I see the same errors.

如果我重新启动Eclipse会出现一个错误说: 找不到文件夹工具里面的SDK的C:\ My_Workspace \ Android_SDK \'。

If I restart Eclipse an error appears saying: "Could not find folder 'tools' inside SDK 'C:\My_Workspace\Android_SDK\'".

如果我点击进入窗口 - > Android的SDK管理器,我得到另一个错误信息说: Android SDK的位置一直没有设置在preference。

If I click into Window ->Android SDK manager, I get another error message saying: "location of the Android SDK has not been setup in the preference."

如果我去窗口 - > preference-> Android的,我看到的是,该SDK位置设置为C:\ My_Workspace \ Android_SDK 但在顶部有一个错误消息说,无法找到文件夹工具里面的SDK的C:\ My_Workspace \ Android_SDK \'。

If I go Window->Preference->Android, I see that, the SDK location is set to "C:\My_Workspace\Android_SDK" But on top, there is an error message saying, "Could not find folder 'tools' inside SDK 'C:\My_Workspace\Android_SDK\'."

在C:\ My_Workspace \ Android_SDK \文件夹中我只看到两个子文件夹: 加载项 平台 但没有任何这些文件夹内。

Inside the C:\My_Workspace\Android_SDK\ folder I see only two sub folders: add-ons platforms But there is nothing inside these folders.

在C:\用户\ anis_huq.android文件夹,我看到一个名为AVD(内容为空),文件夹和文件名为DDMS。

Inside "C:\Users\anis_huq.android" folder I see a folder called AVD (contents empty) and file called "ddms".

这是怎么回事?我很困惑!

What is going on? I am confused!

P.S。帖子:找不到文件夹工具里面的SDK 不帮助我的原因。

P.S. the post: Could not find folder 'tools' inside SDK does not help my cause.

推荐答案

问题在1.5天的工作来解决。这就是:

Problem solved after 1.5 days of work. This is how:

当你的错误:

[2012-01-02 14:29:37 - DDMS] DDMS files not found:
C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\platform-tools\adb.exe
C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\tools\hprof-conv.exe 
C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\tools\traceview.bat

[2012-01-02 14:30:47 - DDMS] DDMS files not found:
C:\My_Workspace\Android_SDK\platform-tools\adb.exe
C:\My_Workspace\Android_SDK\tools\hprof-conv.exe
C:\My_Workspace\Android_SDK\tools\traceview.bat

去网站: http://developer.android.com/sdk/index.html 并下载,安装; installer_r16-windows.exe后

go to the site: http://developer.android.com/sdk/index.html and download, install; installer_r16-windows.exe

在安装后,你仍然会看到这样的一些错误:

After the installation, you will still see some errors like:

Fetching
https:// dl-ssl.google.com/android/repository/addons_list-1.xml Failed
to fetch URL
https:// dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: peer not authenticated Fetched Add-ons List successfully
Fetching URL:
https:// dl-ssl.google.com/android/repository/repository-5.xml Failed
to fetch URL
https:// dl-ssl.google.com/android/repository/repository-5.xml, reason:
peer not authenticated Done loading packages. Fetching URL:
https:// dl-ssl.google.com/android/repository/repository-5.xml Failed
to fetch URL
https:// dl-ssl.google.com/android/repository/repository-5.xml, reason:
peer not authenticated

的问题是不能从错误消息,以便明显。我们计算过,在HTTPS实际上是造成问题的原因。因此,启动

The problem is not so evident from the error messages. We figured that, the HTTPS is actually causing the problem. So, start

Android的SDK管理器 - >工具 - >选项,现在检查说盒子: 力的https:// ...源使用http要取://

Android SDK Manager->Tools->Options and now CHECK the box that says: force https://... sources to be fetched using http://

然后单击包​​ - >刷新。

and then click Packages->Reload.

一切都将安装你的愿望!现在运行Eclipse的>窗口 - > preferences-> Android和设置新安装的Andr​​oid SDK的位置(即Android的SDK文件夹的位置)。而你准备好了。

Everything will be installed as your wish! Now run Eclipse->Window->Preferences->Android and set the location of the newly installed Android SDK (i.e. the location of "android-sdk" folder). And you are ready to go.

1.5天浪费了这一点。

1.5 days wasted for this.