[英]Android Studio SDK Version 22?
Your Android SDK is out of date or is missing templates. 您的Android SDK已过期或缺少模板。 Please ensure you are using SDK version 22 or later.
请确保您使用的是SDK版本22或更高版本。
The machine I'm using I've not had Eclipse on before, but had to because of the SDK Issue, 我使用的机器以前没有Eclipse,但是由于SDK问题,
I've installed 我已经安装了
SDK 64bit here: SDK 64位在这里:
C:\Program Files\Java\jdk1.7.0_21
SDK 32bit here: SDK 32位在这里:
C:\Program Files (x86)\Java\jdk1.7.0_21
Android-Studio is install here: Android Studio安装在这里:
C:\Program Files (x86)\Android\android-studio
Eclipse 日食
C:\Program Files (x86)\Android\Eclipse
Now on another part of this forum a nice post said to change the settings in Configure -> Project Defaults -> Project Structures
, but I'm not to sure what to change. 现在,在该论坛的另一部分,有一篇不错的文章说要更改
Configure -> Project Defaults -> Project Structures
,但是我不确定要更改什么。 I did go into project in (project settings), the list in there is: 我确实进入(项目设置)中的项目,那里的列表是:
I selected Android SDK (java version 1.7.0_21). 我选择了Android SDK(Java版本1.7.0_21)。 Then there are the
NEW
and Edit
buttons. 然后是“
NEW
和“ Edit
按钮。 But when I try to give it a path C:\\Program Files\\Java\\jdk1.7.0_21
etc it says it's incompatible. 但是,当我尝试给它提供路径
C:\\Program Files\\Java\\jdk1.7.0_21
等时,它说这是不兼容的。
My environment variables are: 我的环境变量是:
ANDROID_HOME = C:\Program Files (x86)\Java\jdk1.7.0_21
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_21
Does anybody know how to fix this??? 有人知道如何解决这个问题吗?
另外,请确保在“配置”>“项目默认设置”>“项目结构”>内,单击左下方面板上的“ Android SDK”部分,并插入Android SDK的路径,如下所示:/ Applications / Android Studio.app/sdk(使用浏览器指向sdk文件夹)。
Android SDK
is different from Android API level
. Android SDK
与Android API level
不同。
I had this issue when i tried to migrate from Eclipse to Android Studio IDE. 当我尝试从Eclipse迁移到Android Studio IDE时遇到了这个问题。 The problem is the version of Android SDK Tools as the error message supposes.
问题是错误消息提示的Android SDK Tools版本。
Presuming you have installed Android SDK from Eclipse before : 假设您之前已从Eclipse安装了Android SDK :
1. Open Eclipse
2. Go to Help->Check For Updates and update to latest version (just to be sure)
3. Go to Window->Android SDK Manager
4. on the SDK Manager make sure you have selected Tools.Android SDK Tools,Platform-tools and SDK Build-tools![first 3 on the picture][1]
5. Press 'Install packages'
6. Restart Eclipse and Package Manager
7. Repeat steps 4, 5 and 6 until there is nothing left to update.
8. Close Eclipse, start Android Studio and try to 'create new project' again. This time it should work!
If you are able to start Android Studio, you can open SDK Manager from there (in the toolbox by defaut), and go on from p.4 如果您能够启动Android Studio,则可以从那里打开SDK Manager(默认情况下在工具箱中),然后从第4页开始
if using Eclipse also be sure to have set the SDK path the same as in Eclipse 如果还使用Eclipse,请确保已将SDK路径设置为与Eclipse中相同
Android Studio - configure - Project Defaults - Project structure - Press plus- Android SDK - put path to the same sdk that you use in eclipse (run SDK and in top panel you can see this path) from here
Android的工作室-配置-项目默认值-项目结构-按加功能的Android SDK -把路径您在Eclipse中使用(运行SDK和顶部面板,你可以看到这条道路)相同的SDK 从这里
In your eclipse
在你的
eclipse
Go to Help
→ Install New Software
. 转到
Help
→ Install New Software
。
On Work with: type https://dl-ssl.google.com/android/eclipse/
and press ENTER
. 在使用时:输入
https://dl-ssl.google.com/android/eclipse/
并按ENTER
。
Wait for Eclipse to fetch the repository. 等待Eclipse获取存储库。 An item named Developer tools will appear in the list.
名为“开发人员工具”的项目将出现在列表中。 Mark it for install, press Next and follow the steps to install the
ADT
tools. 将其标记为要安装,按“下一步”,然后按照步骤安装
ADT
工具。
When finished, it will ask to restart Eclipse. 完成后,它将要求重新启动Eclipse。 Make sure you do this.
确保执行此操作。
When Eclipse restarts, all your Android SDK packages should show up again. Eclipse重新启动时,所有Android SDK软件包都应再次显示。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.