Android Studio & Android SDK 安装 到创建模拟器

重新安装Android Studio & Android SDK,这两天坑踩的多了,今天反复安装了好几次Android Studio,觉得特别的容易~

记录下我的安装步骤:

前提条件:已安装JAVA 并配置好环境变量

一、下载Android Studio  https://developer.android.google.cn/studio

二、配置hosts文件,增加 203.208.39.197 dl.google.com (这里的ip地址,可以去http://ping.chinaz.com/ ping检测,选择大陆响应时间最短的ip地址即可)

做好以上两个步骤,点击下载好的 android-studio 点击Next 进行安装。

在这里安装 Android SDK 即可。

安装Android SDK 完成。

安装完后,创建一个项目。

配置系统变量,使用adb命令。

使用adb命令,正常。

创建一个模拟器。

完成,可以使用adb命令操作这个Android模拟器。

今天下午反复安装Android Studio是因为在启动 Appium的时候碰到一个报错:

An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in ["C:\Software Development\Android\platform-tools\adb.exe","C:\Software Development\Android\emulator\adb.exe","C:\Software Development\Android\tools\adb.exe","C:\Software Development\Android\tools\bin\adb.exe"]. Do you have Android Build Tools installed at 'C:Software DevelopmentAndroid'?

报错信息很明显显示的是环境变量配置的问题,但是我始终找不到怎么在appium下修改这个路径。最后我的解决方式是重新安装Android SDK ,把Android SDK 的路径安装到C:Software DevelopmentAndroid 这个目录下,最后成功的打开了这个页面。(emm~ 这并不算解决了,只是我目前没找到其他的解决方式。)

原文地址:https://www.cnblogs.com/duxuebing/p/12252999.html