Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio using existing android sdk

Tags:

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

like image 937
Johnny Doe Avatar asked May 16 '13 08:05

Johnny Doe


People also ask

How can I run an existing Android project in Android Studio?

Launch Android Studio, and click File > New > Import Project. Locate your project directory, click the build. gradle file you created above to select it, and then click OK to import your project.

Is Android SDK installed with Android Studio?

Within Android Studio, you can install the Android 12 SDK as follows: Click Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31.

Are Android SDK backwards compatible?

Backward CompatibilityThe Android SDK is by default forward compatible but not backward compatible — this means that an app that is built with and supports a minimum SDK version of 3.0 can be installed on any device running Android versions 3.0 and upwards — but not on devices running Android versions below 3.0.

Do I need to install Android SDK separately?

There's even an open Java Development Kit (JDK) included, so you no longer need to separately install the latest version separately. Installing Android Studio is just as simple and we have a guide to help you out here. Again, it is just a matter of downloading the installer and following the steps as prompted.


2 Answers

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

like image 186
Romin Avatar answered Oct 23 '22 14:10

Romin


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.

like image 23
Saran Avatar answered Oct 23 '22 12:10

Saran