简体   繁体   English

Android Studio SDK版本22?

[英]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: 我确实进入(项目设置)中的项目,那里的列表是:

  • None 没有
  • 1.7 (java version 1.7.0_21) 1.7(Java版本1.7.0_21)
  • Android SDK (java version 1.7.0_21) Android SDK(Java版本1.7.0_21)

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 SDKAndroid 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 HelpInstall New Software . 转到HelpInstall 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.

相关问题 Android Studio Android 手机“Android 版”9.0 带 SDK ZDB974238714CA8DE634A2vCE1D08 - Android Studio Android Phone “Android Version” 9.0 with SDK API v22? Android Studio 3.4 Android Wear SDK 22 - Android Studio 3.4 Android Wear SDK 22 android studio sdk版本22渲染时异常:action_bar - android studio sdk version 22 exception during rendering: action_bar 哪个Android Studio版本具有Android 5.1(API级别22)? - which android studio version have Android 5.1 (API level 22)? 新版本的Android Studio缺少Android SDK - New version of Android Studio is missing Android SDK Android Studio中的编译器sdk版本和目标sdk版本更改 - compiler sdk version and target sdk version change in Android studio Android SDK 丢失、过期或缺少模板。 请确保您使用的是 SDK 版本 22 或更高版本 - Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later SDK-tools更新版本后,Android应用程序崩溃(NoClassDefFound,工具版本22) - Android app crashes after SDK-tools update version (NoClassDefFound, tool version 22) 如何在Android Studio 1.4中将项目从sdk 23降级到sdk 22 - How to downgrade project from sdk 23 to sdk 22 in Android studio 1.4 Android Studio在多个SDK版本之间切换 - android studio switch between multiple sdk version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM