运行Android工作室在Windows 7上失败,没有Android SDK中发现工作室、发现、Android、SDK

2023-09-05 06:42:17 作者:恋爱的残蛹。

我已经下载并安装Android的工作室,程序加载(设置后的JDK ENV变量),但是当我点击新建项目我得到这个错误:

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 :

您的Andr​​oid 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工作室在以下位置: C:\ Program Files文件\机器人\机器人工作室\ 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或月食没有安装previously, 任何人都安装了Android的工作室,得到了/解决了这个错误!

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工作室的根目录,只是执行它(这种设置SDK环境变量为 C:\ Program Files文件\机器人\机器人工作室\ 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的工作室点击配置 ==> 项目默认值 ==> 项目结构

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

然后在选项卡中的项目 / 项目SDK 选择 Android SDK中

then in the tab Project / Project SDK selected android SDK.

然后在标签软件开发工具包 / 构建目标选择的Andr​​oid 4.2.2

then in the tab SDKs / build target selected Android 4.2.2