当前位置: 代码迷 >> Android >> Android shell 创设 模拟器
  详细解决方案

Android shell 创设 模拟器

热度:334   发布时间:2016-05-01 16:01:00.0
Android shell 创建 模拟器
1: 首先 下载sdk,并且配置合适的环境变量 ~/.bash_profile内,使用source进行加载

2:运行 android create avd -n tommac  进行创建

3:emulator @tommac 运行

更多设置可以查看 android -help  

其中比较麻烦的参数是使用-t 来选择版本,可以使用 android list target 来进行查看不同id对应的版本

补充 为模拟器设置GPS的方式
telnet localhost 5554
geo fix 121.1991,31.0644

tip: 经纬度可以通过Google map的lab获取
  相关解决方案