Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio can't access SDK Manager

I have just downloaded and installed Android studio 0.4.2 and loaded an android project. This project gives me this error:

Cause: failed to find target android-17
       Please install the missing platform from the Android SDK Manager.

so great, I will now go into the SDK manager, and get the missing platform. The only problem is, I cannot access the SDK Manager. The SDK manager button is grayed out and when I go to tools, there is no option for android, so I can't go to toold

Any ideas on how I can fix this problem? I have used Eclipse with ADT before and never had this issue...

like image 531
Sarah Avatar asked Mar 10 '14 23:03

Sarah


People also ask

How do I fix Android SDK Manager not found?

Go to "SDK Tools" and install "Android SDK Tools" and "Android SDK Command-line Tools": You need to open Android Studio then go to Tools > SDK Manager > SDK Tools tab, uncheck the option Hide Obsolete Packages. And install Android SDK Tools and Android SDK Command-line Tools.

How do I open Android SDK Manager?

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool.

How do I open SDK manager in terminal?

From Eclipse (with ADT), select Window > Android SDK Manager. On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory. On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk .


1 Answers

Close the project from

File > Close project

doing this will take ou to the Android Studio welcome screen. From there navigate to this path

Configure > Project Defaults > Project Structure > Android SDK

Set you Android SDK location here, you can check all API's level from he same screen inside SDKs tab.

Now import your project again. You can set project specific SDK after opening the project from

File > Project Structure 
like image 62
Piyush Agarwal Avatar answered Sep 28 '22 23:09

Piyush Agarwal