How do you add an SDK to Android Studio? –

Development issue/problem:

I am using Google Android Studio 0.1 based on IntelliJ and I don’t know how to add additional SDKs to my project.

I exported my existing Eclipse project to a Gradle project, which I imported into Android Studio as recommended by Google.

The SDK for my project is the Google 2.3.3 API. However, I am using the PullToRefresh library, which apparently requires SDK 4.1, so I am trying to add SDK 16 to my project.

I have already made sure to download the SDK via the SDK manager. These SDKs are automatically added to the sdk folder of the Android Studio.app.

I opened the project tree window, clicked SDK in the platform settings and I currently see JDK 1.7 and Google API 2.3.3. I click the + sign above this list to add a new SDK. Then I navigate to the sdk directory that contains the android 16, as shown in the screenshot below. I’m not sure what to add, but I highlighted the android-16 folder (the only one I can select), and when I click Select, the window disappears, but no new SDK appears in the SDK list.

And here’s a screenshot of my view of the SDK Manager, which shows the installed SDKs:

How can I solve this problem?

Solution 1:

I also opened a ticket with Google’s support and got a resolution. If you select the top sdk folder instead of the sdk/platform/android-16 folder, you will be prompted to select the SDK to add. It worked!

Enter a description of the image here

Enter a description of the image here

Solution 2:

You must place the SDK in the specified directory or in the .app directory. You have to do this in the Finder if you’re outside the application, I suppose, but personally I’d use Terminal on a Mac instead of doing it in the application itself or in the Finder. According to Google:

On Windows and Mac, the various tools and other SDKs are stored in the Android Studio application folder. To access the tools directly, use the terminal to navigate through the application and locate the sdk/ directory. For example:

Windows : UsersAppDataLocalAndroidandroid-studiosdk
Mac : /Applications/Android Studio.app/sdk/

Solution 3:

You can change the line in the build.gradle:

compileSdkVersion 18

in the SDK you want to use.

Solution 4:

We had to restart android studio to replace the sdk after installing the new one. Android Studio then asked me to configure the SDK and let me do it.

Solution no. 5:

And for linux (ubuntu)

/usr/share/android-studio/dk

Solution no. 6:

Download your sdk file, go to Android Studio : File->New->Import module

Solution no. 7:

I followed almost the same instructions @Mason G. Zhwiti, but I had to navigate to this folder to find the SDK:

/Users/{my name}/Library/Android/Sdk

I am using Android Studio v1.2.2 on Mac OS.

Solution no. 8:

If you start with an existing IDEA installation (IDEA 15 in my case) where you add the Android SDK (and don’t formally talk to Android Studio), …

Just (easily) download the SDK to your file system (in a location that suits you; it doesn’t matter where).

When you create your first project and access the project SDK : -Bit (or add the Android SDK beforehand, as you wish), go (again) to the root of whatever you have blown up in the file system, as some of the other answers here suggest.

At this point you get a little dialogue to confirm:

Java SDK: 1.7 (for example)
Build purpose : Android 6.0 (for example)

You can click OK, and then, for example, on what you have done. B. as an option in the drop-down list of the project SDK: displayed :

PI 23 platform (Java version 1.7.0_67)

Good luck!

Related Tags:

android studio sdk manager,android sdk 28 install,how to install sdk in android studio,download android sdk only,android sdk,android sdk 28 download,compilesdkversion 29,android 10 sdk version,android 11 sdk version,targetsdkversion 29,compilesdkversion 30,latest android sdk version,install android sdk windows 10,android studio sdk missing,android studio sdk manager missing,how to add third party sdk in android studio

Author: gyui

Leave a Reply

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