简体   繁体   English

找不到SDK和AVD Manager

[英]Can't find SDK and AVD Manager

This is my first step in the direction of android development so apologise for any silly question. 这是我向android开发方向迈出的第一步,为任何愚蠢的问题道歉。

I have used windows installer to install the Android SDK Manager. 我使用Windows安装程序来安装Android SDK Manager。 Post installation, this is how my start menu looks like. 安装后,这是我的开始菜单的样子。

开始菜单

And this is how the SDK Manager looks like: 这就是SDK Manager的样子:

SDK Manager

When I try to use Eclipse pluggin, I get the following error. 当我尝试使用Eclipse插件时,我收到以下错误。

[2012-01-13 16:29:10 - DDMS] DDMS files not found: C:\\Program Files\\Android\\android-sdk\\platform-tools\\adb.exe [2012-01-13 16:29:10 - DDMS]找不到DDMS文件:C:\\ Program Files \\ Android \\ android-sdk \\ platform-tools \\ adb.exe

So I thought maybe I should update the SDK manager but SDK Manager update does nothing at all. 所以我想也许我应该更新SDK管理器,但SDK Manager更新什么都不做。

I searched through the forums and documentation. 我搜索了论坛和文档。 People keep saying that I should use the SDK and AVD Manager. 人们一直说我应该使用SDK和AVD Manager。 I just can't find any tool by that name. 我只是找不到那个名字的工具。 Is that a seperate installation? 这是一个单独的安装吗? I can find an SDK manager and a seperate AVD manager and doesn't look anything like the screenshots see in forums/documentation. 我可以找到一个SDK管理器和一个单独的AVD管理器,看起来不像在论坛/文档中看到的截图。 Maybe I am using the wrong version! 也许我使用的是错误的版本! I downloaded the SDK from the here . 我从这里下载了SDK。


UPDATE 1: 13 Jan 2012 更新1:2012年1月13日

Here is something more I figured. 这是我想的更多的东西。 When I try to update using my SDK manager, this is what I see in the log: 当我尝试使用我的SDK管理器进行更新时,这就是我在日志中看到的内容:

Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection to http://dl-ssl.google.com refused
Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addon.xml, reason: Connection to http://dl-ssl.google.com refused
Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml

For some reason, connection to http://dl-ssl.google.com is being refused and maybe that's why I am unable to update anything. 出于某种原因,与http://dl-ssl.google.com的连接被拒绝,也许这就是为什么我无法更新任何内容。


UPDATE 2: 16 January 2012 更新时间:2012年1月16日

Okay I haven't got any response, I am going to write down everything I am doing before I forget. 好吧,我没有得到任何回应,我会在忘记之前写下我正在做的一切。 Maybe it will be useful for someone else... 也许它会对其他人有用......

I was facing many problems while configuring the environment for Android development. 在为Android开发配置环境时,我遇到了很多问题。 I have sorted solution for couple of issues so far. 到目前为止,我已经为几个问题排序了解决方案。 Maybe I will sort out the others soon! 也许我会尽快理清其他人!

Environment Used: Windows XP 32 bit Eclipse Helios 使用的环境: Windows XP 32位Eclipse Helios

Problem 1: Could not find SDK and AVD Manager component after installing Android SDK. 问题1:安装Android SDK后无法找到SDK和AVD Manager组件。

Solution to Problem 1 Although there is no proper documentation, it took a while for me to understand that the latest version of Android SDK has seperated SDK from AVD Management. 问题1的解决方案虽然没有适当的文档,但我需要一段时间才能理解最新版本的Android SDK已从AVD Management中分离出SDK。 So once you install Android SDK, expect to see two components - 1) SDK Manager, 2) AVD Manager. 因此,一旦安装了Android SDK,就会看到两个组件 - 1)SDK Manager,2)AVD Manager。 I am not sure what sort of features have changed from previous version, but if you are into android development for the first time, this change could drive you nuts as all documents speak based on the previous versions - bad GOOGLE! 我不确定从以前的版本改变了哪些功能,但如果你是第一次进入android开发,这个改变可能会让你疯狂,因为所有文档都基于之前的版本说话 - 糟糕的GOOGLE!

Problem 2 During installation of SDK, the .exe for windows is unable to detect JDK. 问题2在安装SDK期间,.exe for windows无法检测到JDK。

Solution to Problem 2 Again, older documents and forum posts seem to say that hitting the back and then hitting next once again should solve the problem. 问题2的解决方案同样,较旧的文档和论坛帖子似乎说击中后面然后再次击中下一个应该可以解决问题。 Not so with the latest version. 最新版本不是这样。 Google has come up with a funny work around to beat this defect. 谷歌已经想出了一个有趣的工作来击败这个缺陷。 Now you have a small button called "Report Error" . 现在您有一个名为“报告错误”的小按钮。 Click that and the next button will be enabled. 单击该按钮将启用下一个按钮。 This should let you proceed with the installation 这应该让您继续安装

Problem 3: Installing the Eclipse ADT plugin causes the following error 问题3:安装Eclipse ADT插件会导致以下错误

Cannot complete the install because of a conflicting dependency.
  Software being installed: Android Hierarchy Viewer 16.0.1.v201112150204-238534 (com.android.ide.eclipse.hierarchyviewer.feature.group 16.0.1.v201112150204-238534)
  Software currently installed: Eclipse IDE for Java EE Developers 1.3.0.20100617-0521 (epp.package.jee 1.3.0.20100617-0521)
  Only one of the following can be installed at once: 
    Eclipse UI 3.6.1.M20100826-1330 (org.eclipse.ui 3.6.1.M20100826-1330)
    Eclipse UI 3.6.2.M20110203-1100 (org.eclipse.ui 3.6.2.M20110203-1100)
    Eclipse UI 3.6.0.I20100603-1100 (org.eclipse.ui 3.6.0.I20100603-1100)
  Cannot satisfy dependency:
    From: Android Hierarchy Viewer 16.0.1.v201112150204-238534 (com.android.ide.eclipse.hierarchyviewer.feature.group 16.0.1.v201112150204-238534)
    To: org.eclipse.ui 3.6.2
  Cannot satisfy dependency:
    From: Eclipse IDE for Java EE Developers 1.3.0.20100617-0521 (epp.package.jee 1.3.0.20100617-0521)
    To: org.eclipse.epp.package.jee.feature.feature.group [1.3.0.20100617-0521]
  Cannot satisfy dependency:
    From: Java EE IDE Feature 1.3.0.20100617-0521 (org.eclipse.epp.package.jee.feature.feature.group 1.3.0.20100617-0521)
    To: org.eclipse.platform.feature.group [3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY (org.eclipse.platform.feature.group 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY)
    To: org.eclipse.rcp.feature.group [3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS]
  Cannot satisfy dependency:
    From: Eclipse RCP 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS (org.eclipse.rcp.feature.group 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS)
    To: org.eclipse.ui [3.6.0.I20100603-1100]

Solution to Problem 3 This is caused because Eclipse IDE for Java EE Developers is an older version. 问题3的解决方案这是因为Eclipse IDE for Java EE Developers是旧版本。 So in Eclipse, go to Help >> Update Softwares. 所以在Eclipse中,转到帮助>>更新软件。 This would list the latest Eclipse IDE for Java EE Developer. 这将列出最新的Eclipse IDE for Java EE Developer。 Install it. 安装它。 Then repeat the steps to install Android ADT pluggin. 然后重复步骤安装Android ADT插件。 This solved the problem for me. 这解决了我的问题。

Problem 4: When you open eclipse after installing the ADT pluggin, the following error appears: [2012-01-16 16:00:10 - DDMS] DDMS files not found: C:\\Program Files\\Android\\android-sdk\\platform-tools\\adb.exe 问题4:安装ADT插件后打开eclipse时出现以下错误: [2012-01-16 16:00:10 - DDMS]找不到DDMS文件:C:\\ Program Files \\ Android \\ android-sdk \\ platform -tools \\ adb.exe

Solution for Problem 4: This issue has been fixed with the help extended by Nandeesh (see below comments). 问题4的解决方案:此问题已在Nandeesh提供的帮助下修复(见下面的评论)。 I download the platform-tools directory from the following location ( http://dl-ssl.google.com/android/repository/platform-tools_r10-windows.zip ) and unzipped it under platform-tools directory in my installation directory. 我从以下位置( http://dl-ssl.google.com/android/repository/platform-tools_r10-windows.zip )下载platform-tools目录,并将其解压缩到我的安装目录下的platform-tools目录下。 This removed the error from Eclipse ADT. 这从Eclipse ADT中删除了错误。

Problem 5: Following error occurs when I refresh using SDK manager 问题5:使用SDK管理器刷新时发生以下错误

Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused

Partial solution to Problem 5: I am stuck with this problem and I haven't found a solution so far. 问题5的部分解决方案:我遇到了这个问题,到目前为止我还没有找到解决方案。 Here is what I have learnt. 这是我学到的。

All the post on this error claim that this has to do with proxy settings. 此错误的所有帖子声称这与代理设置有关。 This is what I did: I found out my proxy setting by going to my Internet Explorer >> Internet Options >> Connections >> Lan Settings. 这就是我所做的:我通过访问我的Internet Explorer >> Internet选项>>连接>> Lan设置找到了我的代理设置。 Copied the proxy details and set it up in Eclipse >> Windows >> Preferences >> General >> Network Connections. 复制代理详细信息并在Eclipse >> Windows >>首选项>>常规>>网络连接中进行设置。 After this I went to SDK manager >> Tools >> Options and entered proxy details in the HTTP Proxy server Box and checked the force https option. 在此之后,我转到SDK管理器>>工具>>选项,并在HTTP代理服务器框中输入代理详细信息并检查强制https选项。 Tried refreshing - no luck. 尝试刷新 - 没有运气。 Then getting desperate, I have tried all combinations of Proxy and force https. 然后变得绝望,我尝试了代理和强制https的所有组合。 Nothing seems to work. 似乎没什么用。 So, as per suggestion made by Nandeesh (refer comments below), I have started downloading the files directly based on the repository.xml found here ssl.google.com/android/repository/repository-5.xml. 因此,根据Nandeesh提出的建议(请参阅下面的评论),我已经开始根据ssl.google.com/android/repository/repository-5.xml中的repository.xml直接下载文件。 So far so good. 到现在为止还挺好。

Problem 6: Unable to detect target SDK in eclipse ADT 问题6:无法在eclipse ADT中检测目标SDK

Solution for Problem 6: This is what I did. 问题6的解决方案:这就是我所做的。 Downloaded the latest Eclipse. 下载了最新的Eclipse。 I now use Eclipse Indigo. 我现在使用Eclipse Indigo。 Then I checked the directory structure of the SDK installed. 然后我检查了安装的SDK的目录结构。 I installed it under C:/Android/android-sdk. 我在C:/ Android / android-sdk下安装了它。 Avoid any spaces in the file path (that could be causing the issue). 避免文件路径中的任何空格(可能导致问题)。 The Android/android-sdk directory should contain the following directories - platforms, platform-tools, tools, add-ons. Android / android-sdk目录应包含以下目录 - 平台,平台工具,工具,附加组件。 Inside the platforms directory I see android-4.0.3 directory. 在平台目录里面我看到android-4.0.3目录。 This directory should have the version number as part of the directory name. 此目录应具有版本号作为目录名称的一部分。 If you don't see this directory, download the suitable platform from https://dl-ssl.google.com/android/repository/ . 如果您没有看到此目录,请从https://dl-ssl.google.com/android/repository/下载合适的平台。 The version you should be using depends on your environment. 您应该使用的版本取决于您的环境。 The list of all directory is available in this XML http://dl-ssl.google.com/android/repository/repository-5.xml . 此XML http://dl-ssl.google.com/android/repository/repository-5.xml中提供了所有目录的列表。 Download the corresponding platform an unzip the entire contents into C:/Android/android-sdk/platforms. 下载相应的平台,将整个内容解压缩到C:/ Android / android-sdk / platforms。 Also download the corresponding platform-tools and unzip the entire contents into platform-tools directory. 还要下载相应的平台工具并将整个内容解压缩到platform-tools目录中。 Restart eclipse. 重启eclipse。 The SDK should be automatically detected. 应自动检测SDK。 If not, go to Windows >> Preference >> Android and set the SDK installation directory. 如果没有,请转到Windows >> Preference >> Android并设置SDK安装目录。 Hit apply and it should list the available targets. 点击申请,它应该列出可用的目标。 NOTE that the targets will be list if and only if the SDK installation is correct. 请注意,当且仅当SDK安装正确时,目标才会列出。 So ensure that the platforms directory inside the SDK installation is correct. 因此,请确保SDK安装中的平台目录正确无误。

Problem 7 I am seeing this when I open eclipse 问题7当我打开日食时,我看到了这一点 在此输入图像描述

No idea what went wrong. 不知道出了什么问题。 Again suspecting that this is because I manually copied the files :( 再次怀疑这是因为我手动复制文件:(

Solution to Problem 7: Read solution to Problem 6. This would solve problem 7 also. 问题7的解决方案:阅读问题6的解决方案。这也将解决问题7。 The only thing that is important is that make sure your SDK is installed properly. 唯一重要的是确保您的SDK安装正确。 If not manually copy the appropriate platforms and platform-tools and try once again. 如果不手动复制适当的平台和平台工具,请再试一次。 Ensure the structure of the files are proper and that files names do not have a space. 确保文件的结构正确并且文件名没有空格。

Having done all of this, I can now say that I have set up my environment and now I ready to code! 完成所有这些后,我现在可以说我已经设置了我的环境,现在我准备编码了! This issue is RESOLVED :) 这个问题已被解决:)

May or may not still be an issue - but I was unable to use a path with a space in the name ("Program Files" was the culprit). 可能或可能不是问题 - 但我无法使用名称中有空格的路径(“程序文件”是罪魁祸首)。 I believe this is fixed in the current release, but it is worth a try to fix your problem. 我相信这在当前版本中已得到修复,但值得尝试解决您的问题。

problem 4: When you open eclipse after installing the ADT pluggin, the following error appears: [2012-01-16 16:00:10 - DDMS] DDMS files not found: C:\\Program Files\\Android\\android-sdk\\platform-tools\\adb.exe 问题4:安装ADT插件后打开eclipse时出现以下错误:[2012-01-16 16:00:10 - DDMS]找不到DDMS文件:C:\\ Program Files \\ Android \\ android-sdk \\ platform -tools \\ adb.exe

Solution: 解:

I had the same problem with my eclipse Juno. 我的日食朱诺遇到了同样的问题。 then i found that the platform-tools got corrupted. 然后我发现平台工具已损坏。 i deleted the corrupted file from sdk manager and re-installed it. 我从sdk管理器中删除了损坏的文件并重新安装它。 Now i dint find any error messages. 现在我发现任何错误消息。

Hope this would help you!! 希望这会对你有所帮助!!

for problem 5 : 问题5

The problem is your network ofcourse. 问题是你的网络。 Use a moderm instead of a LAN and this will work perfectly. 使用现代而不是LAN,这将完美地工作。 But if you are using a LAN then ask your network administrator to help you with this. 但是,如果您使用的是LAN,请让网络管理员为您提供帮助。

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

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