简体   繁体   English

无法打开Android SDK Manager(尝试了各种修复程序)

[英]Can't Open Android SDK Manager (tried various fixes)

So, no matter what I do and no matter what fix I try, I still can't open the Android SDK manager. 因此,无论我做什么,无论尝试什么修复,我仍然无法打开Android SDK管理器。 I've gotten it working before, but I forget what I did. 我之前已经开始使用它,但是我忘记了我所做的事情。 And my computer has had a fresh install since then, and is no longer running Windows 8 (it's now Windows 8.1). 从那时起,我的计算机进行了全新安装,并且不再运行Windows 8(现在为Windows 8.1)。 When I try to open SDK Manager.exe cmd flashes on the screen then disappears. 当我尝试打开SDK Manager.exe时,cmd在屏幕上闪烁,然后消失。 Same with android.bat. 与android.bat相同。

One person noted that it's important to read the Android bat file error because there are numerous reasons as to why it won't open, so I ran it and quickly pressed print screen to get the text in cmd that flashes on the screen and then disappears. 有人指出读取Android bat文件错误很重要,因为有很多原因导致它无法打开,所以我运行了它并迅速按了打印屏幕,以cmd格式显示文本,该文本在屏幕上闪烁然后消失。 I uninstalled, and reinstalled the Android Studio bundle so I could start over. 我已卸载并重新安装了Android Studio捆绑包,这样我可以重新开始。 This is the error 这是错误

The system cannot find the path specified.
The system cannot find the path specified.
'Sarah\AppData\Local\Android\sdk\tools\' is not recognized as an internal or external command.
operable program or batch file.
The system cannot find the path specified.

My user profile is not "Sarah" but actually "Eric & Sarah". 我的用户个人资料不是“ Sarah”,而是“ Eric&Sarah”。 Not sure if that has to do with anything. 不知道这是否与任何事情有关。 And I don't know how to change it. 而且我不知道如何更改它。 I have looked at the bat file and have told it before where my java.exe file is, but it makes no difference. 我查看了bat文件,并在java.exe文件位于何处之前告诉了它,但这没有什么区别。 My java.exe file is here: 我的java.exe文件在这里:

C:\Program Files (x86)\Java\jre1.8.0_25\bin\java.exe

The android.bat error is from a fresh install and I've made no changes whatsoever. android.bat错误来自全新安装,我没有做任何更改。

The filename path probably is not set correctly because of the spaces and amp used?.Not entirely sure. 文件名路径可能由于使用空格和amp而没有正确设置?
Also, make sure you have set the environment variable JAVA_HOME to the specified JDK path. 另外,请确保已将环境变量JAVA_HOME设置为指定的JDK路径。

If nothing worked, please take a look at this answer or this . 如果没有任何效果,请查看此答案this Seemed to worked for most people. 似乎为大多数人工作。
Hope i helped. 希望我能帮上忙。

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

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