Android Studio using existing android sdk-ThrowExceptions

Exception or error:

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\?

How to solve:

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

###

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.

###

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.

🙂

###

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)

Leave a Reply

Your email address will not be published. Required fields are marked *