简体   繁体   English

SDK Manager显示为灰色

[英]SDK Manager is greyed out

Searched for other answers but didn't find an exact answer. 搜索其他答案,但没有找到确切的答案。

I just installed Android Studio and followed exactly the directions that are displayed here: https://developer.android.com/sdk/installing/index.html?pkg=studio 我刚刚安装了Android Studio并完全按照此处显示的说明操作: https//developer.android.com/sdk/installing/index.html?pkg = studio

When I move on to the next page here: https://developer.android.com/sdk/installing/adding-packages.html it states that I should "In Eclipse or Android Studio, click SDK Manager in the toolbar". 当我转到下一页时: https//developer.android.com/sdk/installing/adding-packages.html它声明我应该“在Eclipse或Android Studio中,单击工具栏中的SDK Manager”。 But the Icon "SDK Manager" is greyed out. 但Icon“SDK Manager”是灰色的。

I am running ubuntu 64-bit 14.04 我正在运行ubuntu 64位14.04

JDK runs fine. JDK运行良好。

Any help would be appreciated. 任何帮助,将不胜感激。

As far as I know the current versions of Android Studio have been released without SDK included by default. 据我所知,当前版本的Android Studio已经发布,默认情况下不包含SDK。 You can download it here http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz , and install in a folder different from your AS installation since it's important now. 您可以在http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz下载它,并安装在与AS安装不同的文件夹中,因为它现在非常重要。
AS usually asks you for a path to SDK location if it cannot find it. 如果无法找到它,AS通常会要求您提供SDK位置的路径。
Hope this helps. 希望这可以帮助。

I had the same issue. 我遇到过同样的问题。 My setup is behind a proxy. 我的设置在代理后面。 So the studio init was failing. 所以工作室init失败了。 So i added disable.android.first.run=true this line in idea.properties in android-studio/bin It worked and studio was launched, but then i saw that SDK Manager is grayed out. 所以我在android-studio / bin中的idea.properties中添加了disable.android.first.run=true这一行它工作和工作室启动了,但后来我看到SDK Manager灰显了。

My Problem was fixed when i removed the disable.android.first.run=true line and started the studio again. 当我删除disable.android.first.run=true行并再次启动工作室时,我的问题得到解决。

Please also keep in mind that i had to add the below lines for proxy in 还请记住,我必须添加以下代理行

studio64.vmoptions and studio.vmoptions
-Dhttps.proxyPort=port
-Dhttps.proxyHost=host
-Dhttps.proxyUser=username
-Dhttps.proxyPassword=password

Hope this helps 希望这可以帮助

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

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