SDK Manager.exe 不起作用

2022-01-15 00:00:00 environment-variables android java

当我单击 Program Files 上的 SDK Manager 或在 cmd 中运行它时,什么也没发生.我做到了:

When I clicked SDK Manager on Program Files or run it in cmd, nothing happened. I did:

  1. 安装了最新的 JDK
  2. 安装了最新的 Android SDK
  3. 设置环境 JAVA_HOME 并将 %JAVA_HOME%in 放入路径变量**

实际上是一个黑色的cmd窗口出现并消失一毫秒.

Actually a black cmd window appears and disappears a milliseconds.

如何解决?

我每天都在 Google 上搜索,但找不到解决方案.即使我为 ANDROID_SWT 设置路径它也无法运行.我怀疑Android SDK的安装包有bug.

I Googled day by day but can't find a solution for this. Even I set path for ANDROID_SWT it also can't run. I suspect that Android SDK has bug in its installation package.

  • 安卓安装-sdk manager.exe不起作用

Android 安装/SDK 管理器问题

我已经筋疲力尽了,这是我最后一次尝试:

I'm totally exhausted and this is the last my try:

  1. 卸载 JDK、Android SDK,移除所有 ANDROID 或 JAVA 环境变量
  2. 重新安装 JDK 和 Android SDK

但没有任何改变.

其实这是我第二次遇到这个问题.只有在为 Ant 和 Maven 添加了更多环境变量后,我才遇到了这个问题.这是摘要:

Actually this is the second time I meet this problem. I got this problem only after I added more Environment variables for Ant and Maven. This is the summary:

安装 Windows XP SP3 --> 安装 JDK --> 安装 Android SDK --> 打开 SDK Manager 就可以了!--> 在 "path" 变量中附加一些 Ant 和 Maven 的 "bin" 路径 --> 打开 SDK Manager 并且它没有打开 --> 我通过删除所有环境变量来回滚 --> SDK Manager 仍然没有打开!这很奇怪!--> 重装JDK和Android SDK就奇怪了,还是打不开!:(

Install Windows XP SP3 --> Install JDK --> Install Android SDK --> Open SDK Manager and it works! --> append some more "bin" path of Ant and Maven in "path" variable --> Open SDK Manager and it doesn't open --> I rolled back by removing all environment variables --> SDK Manager still no opens! That's very strange! --> It is stranger when I reinstall JDK and Android SDK, it still no opens! :(

推荐答案

第 1 步:打开命令提示符.

Step #1: Open up a command prompt.

第 2 步:使用 cd 命令移动到安装 Android SDK 的位置.

Step #2: Use the cd command to move to wherever you installed your Android SDK.

第 3 步:运行 toolsandroid.

如果这不起作用,您应该将信息转储到命令提示符以帮助您诊断设置问题.

If that does not work, you should have information dumped to the command prompt that will help you diagnose your setup problem.

相关文章