你如何添加一个SDK到Android工作室? [英] How do you add an SDK to Android Studio?

查看:263
本文介绍了你如何添加一个SDK到Android工作室?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是谷歌的Andr​​oid 0.1工作室的基础上的IntelliJ,我无法弄清楚如何添加额外的软件开发工具包,以我的项目。

I'm using Google's Android Studio 0.1 based on IntelliJ, and I cannot figure out how to add additional SDKs to my project.

我出口我现有的项目从Eclipse来一个摇篮项目,我导入到Android的工作室,所建议的谷歌

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

我的项目的SDK是谷歌的API 2.3.3。但是,我使用了一个名为PullToRefresh库,似乎需要SDK 4.1,所以我想在SDK 16添加到我的项目。

My project's SDK is Google APIs 2.3.3. However, I use a library called PullToRefresh which appears to need SDK 4.1, so I'm trying to add the SDK 16 to my project.

我已经确信下载使用SDK管理器的SDK。这些SDK被加入到Android Studio.app的SDK自动文件夹。

I've already made sure to download the SDK using the SDK manager. These SDKs are added to the Android Studio.app's sdk folder automatically.

我打开了项目结构的窗口,点击平台设置下的软件开发工具包,而我目前看到显示的JDK 1.7和谷歌的API 2.3.3。我点击上面列表中的+号添加一个新的SDK。然后,我浏览到具有Android为16,如下图所示的截图SDK目录。我不太清楚这是什么要我补充,但我已经强调了android-16的文件夹(约我可以选择的唯一的事情),当我点击选择窗口消失,但没有新的SDK将出现在SDK的列表。

I opened the Project Structure window, clicked "SDKs" under Platform Settings, and I currently see JDK 1.7 and Google APIs 2.3.3 shown. I click the + sign above that list to add a new SDK. I then navigate to the sdk directory that has android-16, as shown in the screenshot below. I am not quite sure what this wants me to add, but I've highlighted the android-16 folder (about the only thing I can select), and when I click "Choose," the window disappears, but no new SDK appears in the SDK list.

和这里是我的SDK管理器视图中的屏幕截图,显示已安装的软件开发工具包:

And here is a screenshot of my SDK Manager view, showing the installed SDKs:

推荐答案

我开了一张票也与谷歌的支持,并获得了解决方案。相反,选择SDK /平台/ Android为16文件夹,如果选择顶级SDK文件夹而不是,你会再被要求选择哪个SDK,您要添加。这个工作!

I had opened a ticket also with Google's support, and received the solution. Instead of choosing the sdk/platform/android-16 folder, if you select the top-level "sdk" folder instead, you'll then be asked to choose which SDK you want to add. This worked!

这篇关于你如何添加一个SDK到Android工作室?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆