APP自动化测试环境安装—Mac版Appium安装下载步骤

一、安装Android SDK

下载地址:http://tools.android-studio.org/index.php/sdk

拖到页面底部,你将找到下载链接,根据自己的平台选择对应的链接下载。

1、将下载的 Android SDK 解压,将得到如下目录。

2、打开tools下的android并打开,得到如下界面,然后选择安装Platform-tools和至少一个SDK Platform以及ABI,需要保持Internet连接。

注意:下载时必须下载带有system image的项目,不然创建AVD时会报错“Error: Invalid --abi armeabi-v7a for the selected target.

如果下载时报License的错误,此时需要修改/etc/hosts文件,在里面新增两行:

#download android sdk from google fuck on
74.125.237.1 dl-ssl.google.com

3、创建Android Virtual Devices(AVD)

android list targets命令查看当前所存在的虚拟机

android create avd -n qings -t 2 -b android-wear/x86 创建虚拟机

4、输入以下命令启动模拟器

android-sdk/tools/emulator -avd qings

默认的创建目录在~/.android/avd/

 备注:启动时报错:This AVD’s configuration is missing a kernel file! Please ensure the file “kernel-qemu” is in the same location as your system image.

解决方法:将 android-sdk-windows\system-images\android-27\google_apis\x86 目录下的 “kernel-ranchu-64” 文件改名为 “kernel-qemu”,然后重新 start 虚拟机

启动时再次报错:emulator: ERROR: x86 emulation currently requires hardware acceleration!

解决方法:

可以去 http://www.androiddevtools.cn/index.html 下载 Android SDK Extras , 然后解压 Hardware_Accelerated_Execution_Manager 到 android-sdk-windows\extras\intel 目录,再手动点击 intelhaxm-android.exe

 

 

 

posted on 2019-01-30 17:39  瞎学瞎写  阅读(1157)  评论(0编辑  收藏  举报