Kevin Sylvestre
Kevin Sylvestre

Reputation: 38062

Android Studio Not Including SDK

I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?

Android SDK Location + JDK Location

Upvotes: 34

Views: 69582

Answers (12)

Abdul Hafidz
Abdul Hafidz

Reputation: 1

File -> Settings -> Languages & Frameworks -> Android SDK

Then click Edit

Upvotes: 0

Sharma AK
Sharma AK

Reputation: 85

Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk

Upvotes: 0

Hesam Kh
Hesam Kh

Reputation: 111

in my case, my country is forbidden from google, and my PC's time zone was set by my counrty. after I change my timezone to another country my problem solved and android studio download SDK and nkd easily

Upvotes: 0

user1828182
user1828182

Reputation:

If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).

The solution is starting Android Studio and then File -> Manage IDE Settings -> Restore Default Settings This will wipe any custom settings you don't have at this point and trigger the SDK install

Upvotes: 4

Dielson Sales
Dielson Sales

Reputation: 1736

Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.


Old answer

It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.

That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.

enter image description here

Upvotes: 19

Rob Frohne
Rob Frohne

Reputation: 1

I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.

I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.

Upvotes: 0

Vikram
Vikram

Reputation: 7525

It worked like this for me

  1. Downloaded the Android Studio
  2. Install Android Studio
  3. Open Android Studio after installation.
  4. You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
  5. It will ask you in the dialog box to pre-configure such as theme, path etc.
  6. Just click next next...and then Finish. You will see the SDK tool will start downloading.

enter image description here

After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk

Upvotes: 2

Ikeban
Ikeban

Reputation: 119

What Pablo wrote is misleading.

This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).

Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html

Upvotes: 1

Pablo Esteban Camacho
Pablo Esteban Camacho

Reputation: 145

Information for Windows

For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.

This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).

And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe Note that this last one has the "bundle" in the file name.

Please, download the bundle (IDE+SDK) from here:

https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko

I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.

Hope this helps!

Upvotes: 5

cwongmath
cwongmath

Reputation: 550

Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.

Upvotes: 40

Willy
Willy

Reputation: 157

I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.

Upvotes: 14

Krishna
Krishna

Reputation: 170

Note:this is a temporary fix

If you have Eclipse then you can use that SDK for emulation.

Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.

Hope this helps you.

All the Best...

Upvotes: -3

Related Questions