“SDK 平台工具组件丢失!”

发布于 2024-10-09 17:16:47 字数 648 浏览 0 评论 0原文

我正在尝试在 此线程

按照建议,我运行了 HelpCheck for Updates,它发现并安装了以下内容:

  + Android DDMS              8.0.1.v201012062107-82219
  + Android Development Tools 8.0.1.v201012062107-82219

它提示重新启动 Eclipse,当它重新启动时,它给了我以下错误消息:

"SDK Platform Tools component is missing!
Please use the SDK Manager to install it."

嗯?为什么?我在 C:\android-sdk-windows 上仍然有 SDK 平台工具,在我进行此“升级”之前,该工具运行良好。

我需要什么才能在我的开发环境中同时支持 2.2 和 1.6?

I am trying to add the add SDK Platform 1.6 to an existing Install of 2.2, with the help of this thread.

As suggested, I ran HelpCheck for Updates which found and installed the following:

  + Android DDMS              8.0.1.v201012062107-82219
  + Android Development Tools 8.0.1.v201012062107-82219

It prompted for restarting Eclipse and when it restarted it gave me the following error message:

"SDK Platform Tools component is missing!
Please use the SDK Manager to install it."

Huh? Why? I still have the SDK Platform Tools on C:\android-sdk-windows that was working perfectly before I did this "upgrade".

What do I need to have both 2.2 and 1.6 supported in my development environment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

妄司 2024-10-16 17:16:47

好的,这是我为解决该问题所做的操作:

Open Eclipse. Then:
  Window > Android SDK and AVD Manager
   > Available Packages: 
     > Android Repository:
       + Android SDK Tools, revision 8
       + Android SDK Platform-tools, revision 1

[Install Selected]

OK, here is what I did to fix the problem:

Open Eclipse. Then:
  Window > Android SDK and AVD Manager
   > Available Packages: 
     > Android Repository:
       + Android SDK Tools, revision 8
       + Android SDK Platform-tools, revision 1

[Install Selected]
梦一生花开无言 2024-10-16 17:16:47

下载的sdk软件不包含sdk平台工具。

为此,请使用 cmd 转到“C:\Program Files\Android\android-sdk\tools” 目录,然后键入以下命令来下载那些缺少的工具:

android.bat update sdk --no-ui 

然后输入y接受cmd中的所有许可证。下载将在 cmd 本身中开始。

The downloaded sdk software does not contain sdk platform tools.

For this, using cmd go to "C:\Program Files\Android\android-sdk\tools" directory and then type the following command to download those missing tools:

android.bat update sdk --no-ui 

Then type y to accept all the licenses in cmd. Downloading will start in cmd itself.

浪漫之都 2024-10-16 17:16:47

安装 Android SDK 是通过“Android SDK 和 AVD 管理器”完成的...Eclipse 的“窗口”菜单上有一个快捷方式,或者您可以从现有 Android SDK 安装的根目录运行 .exe。

是的,我认为安装 2.3 SDK 可以解决您的问题...您可以同时安装旧版 SDK。重要的是 SDK 的结构在 2.3 中发生了变化,一些工具(例如 ADB)从 sdkroot\tools 移动到 sdkroot\platform-tools。很可能最新的 ADT 插件无法大规模向后兼容该更改。

Installing Android SDKs is done via the "Android SDK and AVD Manager"... there's a shortcut on Eclipse's "Window" menu, or you can run the .exe from the root of your existing Android SDK installation.

Yes I think installing the 2.3 SDK will fix your problem... you can install older SDKs at the same time. The important thing is that the structure of the SDK changed in 2.3 with some tools (such as ADB) moving from sdkroot\tools to sdkroot\platform-tools. Quite possibly the very latest ADT plugin isn't massively backwards-compatible re that change.

意中人 2024-10-16 17:16:47

我不明白为什么这些文件从 /tools 重新定位到 /platform-tools。
似乎我尝试过的所有开发工具(其中之一就是 appcelerator)都让其安装软件在 /tools 中查找这些文件,然后安装失败。 “解决方法”涉及一些不同的技巧,其中您可以...1)设置一个软链接来告诉操作系统“如果您在这里查找文件“x”,它实际上就在这里。或者2)更简单方法...复制所有 /platform-tools 默认(额外的 android sdk 安装)文件并将它们放入 /tools 文件夹中,这可以避免较新的 sdk 所做的重定位。
当然,您必须设置路径环境变量以指向 SDK 位置(有时指向 Android-sdk-[操作系统名称:Android-sdk-windows 或 Android-sdk-mac_x86 等] 以及 /platform-tools 和有时到/工具。
这是一种反复试验的痛苦。但当它最终起作用时......它起作用了。

I don't understand why the files were relocated to /platform-tools from /tools.
It seems ALL development tools I have tried, appcelerator for one, have their setup software look for these files in /tools and fail setup. The "work around" involves a few different bits of trickery wherein you either...1) set up a soft link to tell the operating system "if you look for file "x" here it is really over here. or 2) simpler method ... make a copy of all the /platform-tools default (pre-additional android sdk installations) files and place them into the /tools folder. this circumvents the relocation that the newer sdk have done.
Then of course YOU MUST SET PATH ENVIRONMENT VARIABLES TO POINT TO THE SDK LOCATION (sometimes to the Android-sdk-[operating system name:Android-sdk-windows or Android-sdk-mac_x86 ect. ] and to the /platform-tools and sometimes to /tools.
it is a trial and error pain. But when it finally is working ...it works.

温柔戏命师 2024-10-16 17:16:47

在更新 SDK 组件之前,请检查 Android SDK Manager工具选项 并设置 HTTP 代理和端口(如果在本地 LAN 中设置)。

Before update SDK components, check in Android SDK ManagerToolsOptions and set HTTP proxy and port if it is set in local LAN.

亢潮 2024-10-16 17:16:47

最新版本的 Android SDK 附带两个不同的应用程序:一个 SDK 管理器和一个 AVD 管理器,而不是最初提出此问题时有效的单个应用程序。

我的具体问题与其他建议无关。目前我所在的网络大多不允许 HTTPS 流量。为了安装 Android 平台工具,我需要打开“强制使用 http://... 获取 https://... 源”选项,然后这允许我安装其他工具。

The latest version of the Android SDK ships with two different applications: an SDK Manager and an AVD Manager rather than one single app that was valid when this question was originally asked.

My particular problem was unrelated to the other suggestions. I'm on a network at the moment where HTTPS traffic is mostly disallowed. In order to install the Android Platform Tools I needed to turn on the option to "Force https://... sources to be fetched using http://..." and then this allowed me to install the other tools.

寻找一个思念的角度 2024-10-16 17:16:47

这是另一种选择。直接在这里下载: http://androidsdkoffline.blogspot.com.ng/ p/android-sdk-tools.html

截至撰写本文时,当前版本是 Android SDK Tools 25.1.7。下载完成后解压并放入sdk文件夹中。然后,您可以直接从 SDK 管理器下载其他缺失的文件。

Here is another alternative. Download it directly here: http://androidsdkoffline.blogspot.com.ng/p/android-sdk-tools.html.

The present version as of this writing is Android SDK Tools 25.1.7. Unzip it when the download is done and place it in your sdk folder. You can then download other missing files directly from the SDK Manager.

高跟鞋的旋律 2024-10-16 17:16:47

我在 Windows 7 和 Eclipse Luna (4.4.0) 上使用 SDK 24.0.2 和 ADT 23.0 时也遇到过类似的问题。 Android SDK 管理器附带默认代理 IP 127.0.0.1 (localhost) 和端口 8081。因此,当您尝试按照早期解决方案的建议运行 SDK 管理器时,它将尝试通过默认代理设置进行连接,但始终失败(......至少在我的系统上)。因此,如果您不需要代理设置,只需清除默认代理设置(即删除代理服务器IP和端口,将字段留空)。否则根据需要进行设置。要在 Eclipse 中访问这些设置,请转到 Window->; Android SDK 管理器->工具->选项。

希望这对某人有帮助。

I have been faced with a similar problem with SDK 24.0.2, and ADT 23.0, on windows 7 and Eclipse Luna (4.4.0). The android SDK Manager comes with default Proxy IP of 127.0.0.1 (localhost) and port 8081. So as you try to run the SDK Managers as advised by earlier solutions, it will try to connect through the default proxy settings, which keep on failing(...at least on my system). Therefore, if you do not need proxy settings, simply clear default proxy settings (i.e. remove proxy server IP and Port, leaving the fields empty). Otherwise set them as necessary. To access these settings in eclipse, go Window-> Android SDK Manager->Tools->Options.

Hope this helps someone.

半世晨晓 2024-10-16 17:16:47

第 1 步:
单击任务栏上的蓝色图标。它是“SDK 管理器”。然后单击“外观和外观”。行为->系统设置-> Android SDK

第2步:
选择“Android SDK位置”并选择编辑选项。它将提示您更新/安装组件。然后开始下载或更新,这可能需要一段时间,您所要做的就是耐心等待。 “如果您之前安装过 sdk,它将显示 sdk android sdk 已安装”

第 3 步:
一旦完成,程序将正常编译,并且不会存在任何错误。

step 1:
click on the blue icon on taskbar. It is "SDK MANAGER". Then next click on the Appearance & Behaviour -> System Settings -> Android Sdk

step2:
select on "Android SDK location" and choose edit option.It will prompt you update/install the components. Then start the download or update and this may take a while , all you have to do is wait patiently. "In case you have previously installed the sdk it will show that the sdk android sdk is installed"

step3:
once this is done the program will compile fine ,and no error will exist whatsoever.

伴我心暖 2024-10-16 17:16:47

谢谢 Udit Sood

android.bat update sdk --no-ui 不适用于 Windows 10 powershell,但
.\android.bat update sdk --no-ui 有效

Thanks Udit Sood

android.bat update sdk --no-ui not worked on windows 10 powershell but
.\android.bat update sdk --no-ui worked

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文