赞
踩
1.JDK安装JDK请自行百度
2.下载Android sdk
Android sdk
3.下载android-sdk_r24.4.1-windows.zip,并解压
4.下载installer_r24.4.1-windows.exe,并运行
5.运行“SDK Manager.exe”进行SDK(虚拟包)下载,我选择为7.0版,点击install packages开始安装(此处下载是为搭建Android模拟器和环境变量做准备)
下载时间过长,请等待。。。。
6.设置环境变量 (D:\android-sdk_r24.4.1-windows\android-sdk-windows)
新建一个ANDROID_HOME的环境变量加入sdk(zip解压路径)安装路径
7.在path环境变量加入
;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;
8.测试环境是否成功,运行DOS输入
adb
9.创建Android模拟器
Android Studio运行模拟器时报如下错误信息:
Starting emulator for AVD ‘test’
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM is not installed on this machine
解决方案:
进到sdk安装目录下D:\android-sdk_r24.4.1-windows\android-sdk-windows\extras\intel\Hardware_Accelerated_Execution_Manager
点击intelhaxm-android.exe文件手动安装,成功即重新启动即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。