在 Windows 7 上运行 Android Studio 失败,找不到 Android SDK [英] running Android Studio on Windows 7 fails, no Android SDK found

查看:32
本文介绍了在 Windows 7 上运行 Android Studio 失败,找不到 Android SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并安装了 Android Studio,程序加载(在设置 ​​JDK 环境变量)但是当我点击新项目"时,我收到这个错误:

I've downloaded and installed Android Studio, the program loads (after setting the JDK env variable) but when i click on "New Project" i get this error :

您的 Android SDK 已过期或缺少模板.请确保您使用的是 SDK 版本 22 或更高版本.

Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.

Android SDK 包含在此位置的 Android Studio 中:C:\Program Files\Android\android-studio\sdk 但他似乎没有找到,

the android SDK is included with Android Studio in this location : C:\Program Files\Android\android-studio\sdk but it seems he dosen't find it,

之前没有安装android SDK或eclipse,任何人安装了 Android Studio 并得到/解决了这个错误!!

android SDK or eclipse was not installed previously, anyone installed Android Studio and got/solved this error!!

推荐答案

好的,这是它的工作原理:

ok, here's how it worked:

我下载了 Adt 包并将文件SDK Manager.exe"复制到 Android studio 根目录并执行它(这将 SDK 环境变量设置为 C:\Program Files\Android\android-studio\sdk).

I downloaded the Adt bundle and Copied the file "SDK Manager.exe" to the Android studio root directory and just executed it (this set the SDK environment variable to C:\Program Files\Android\android-studio\sdk).

然后在 Android studio 中点击 Configure ==> Project Defaults ==> Project Structure

then In Android studio clicked Configure ==> Project Defaults ==> Project Structure

然后在标签项目/项目SDK中选择android SDK.

然后在标签SDKs/构建目标中选择Android 4.2.2

then in the tab SDKs / build target selected Android 4.2.2

这篇关于在 Windows 7 上运行 Android Studio 失败,找不到 Android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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