简体   繁体   English

无法在Android Studio 1.0中打开Android SDK Manager

[英]Can't open Android SDK Manager in Android Studio 1.0

I've just downloaded it and I've looked at all the other answers. 我刚刚下载了它,我看了所有其他答案。

Android Studio (AS) seems to load fine and I can start one of the template projects. Android Studio(AS)似乎加载正常,我可以启动其中一个模板项目。

But I cannot open the SDK Manager (which I want for Ionic). 但我无法打开SDK Manager(我想要Ionic)。 I press the button, I get a messages saying it's loading, a progress bar that fills and then nothing. 我按下按钮,我收到一条消息说它正在加载,一个进度条填充然后什么也没有。

I've tried running it as Administrator and it makes not difference. 我已经尝试以管理员身份运行它并没有区别。

Any ideas? 有任何想法吗?

Ok, i had this problem for hours but figured out how to fix it. 好吧,我有几个小时的问题,但想出了如何解决它。

This problem is not due to Android Studio or gradle . 此问题不是由Android Studio或gradle引起的。 Its just because of the updated sdk 24. No need to downgrade studio or anything. 它只是因为更新的sdk 24.无需降级工作室或任何东西。 Follow simple procedure: 遵循简单的程序:

  • close android studio 关闭android工作室

  • Download http://goo.gl/v0UPm6 下载http://goo.gl/v0UPm6

  • goto \\sdk goto \\ sdk

  • rename 'tools' to 'tools1' (In case you need backup) 将'tools'重命名为'tools1'(如果需要备份)

  • extract this zip to \\sdk 将此zip解压缩到\\ sdk

  • it will make tools folder in \\sdk 它将在\\ sdk中创建工具文件夹

  • restart studio and errors will be gone 重启工作室和错误将消失

I saw this solution here: https://plus.google.com/u/0/107852486976928213243 我在这里看到了这个解决方案: https//plus.google.com/u/0/107852486976928213243

As HooKing suggested you need to change your find_java.bat file located in sdk/tools/lib folder. 正如HooKing建议您需要更改位于sdk/tools/lib文件夹中的find_java.bat文件。

This line 这条线

                                      v  
find /i "x86" > NUL && set arch_ext=32|| set arch_ext=64
                                      ^

Needs a space like this one 需要像这样的空间

                                      v
find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64
                                      ^

Or 要么

make sure your android.bat located in sdk/tools/ has this line correct 确保位于sdk/tools/ android.bat具有此行正确

set java_exe="%JAVA_HOME%\java.exe"

There was a bug in SDK Tools 24.0.0 which makes the SDK Manager not work on some 32-bit Windows systems. SDK Tools 24.0.0中存在一个错误,导致SDK Manager无法在某些32位Windows系统上运行。 When you start Android Studio 1.0.1 you get a balloon saying that Tools 24.0.1 is available; 当你启动Android Studio 1.0.1时,你会得到一个气球,说工具24.0.1可用; click on it, and then you can install it right from within the IDE (that doesn't use the SDK Manager to do the install). 单击它,然后您可以直接在IDE中安装它(不使用SDK Manager进行安装)。 SDK Manager should now work again. SDK Manager现在应该再次运行。 If not you can download a fix for the SDK manager directly from http://tools.android.com/knownissues (see the first issue) 如果没有,您可以直接从http://tools.android.com/knownissues下载SDK管理器的修补程序(请参阅第一期)

Make sure ./android sdk command works from the tools directory in the sdk. 确保./android sdk命令可以在sdk中的tools目录中运行。 If it fails, try fixing the error. 如果失败,请尝试修复错误。 Once this starts working, SDK Manager would start working from Android Studio as well. 一旦开始工作,SDK Manager也将从Android Studio开始工作。 In my case I was getting the following error "swt.jar not found in ANDROID_SWT directory. I had ANDROID_SWT path added to my home that was creating problems. Once I removed it, everything started working fine! 在我的情况下,我得到以下错误“在ANDROID_SWT目录中找不到swt.jar。我已经将ANDROID_SWT路径添加到我的家中,这是创建问题。一旦我删除它,一切都开始正常工作!

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

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