Johnny Doe
Johnny Doe

Reputation: 3330

Android Studio using existing android sdk

I already have the latest android sdk with all platforms/sources/etc downloaded. How can i tell Android Studio to use an existing android sdk without moving it to android-studio\sdk\?

Upvotes: 22

Views: 46624

Answers (4)

Steven McConnon
Steven McConnon

Reputation: 2680

How you do it without having to download another 1GB android sdk:

While installing Android Studio, you have an option to install Custom or Standard.

Choose Custom, and then set the location of your android SDK to where your SDK currently resides.

A red message will appear saying that an existing SDK installation was detected and that only outdated and missing plugins will be installed.

:)

Upvotes: 4

Zeeshan Akhter
Zeeshan Akhter

Reputation: 1891

In Android Studio

Go to

File -> project Structure into Project Structure
Left -> SDK Location
SDK location select Android SDK location (old version use Press +, add another sdk)

Upvotes: 0

Saran
Saran

Reputation: 3885

Go to Configure > Project Defaults > Project Structure. There is a setting: SDK Location.

Changing that will make AS use the specified SDK (instead of the one it comes with) for all your projects.

Upvotes: 14

Romin
Romin

Reputation: 8816

Follow this:

  • Open up your project in Android Studio.
  • Go to Settings for the Project via F4. Or selecting the Project Root -> Right-Click and then Module Settings.
  • You will find Project Settings and Module Settings under which you have the option of selecting both your JDK and Android SDKs if you want.
  • For e.g. under Platform Settings, you will find SDKs and you can simply tap on the green + sign to add your own path to a locally present SDK.

Hope this helps.

enter image description here

Upvotes: 34

Related Questions