centOS直接启动已安装的安卓模拟器

前言

有时候我们不需要打开androidstudio直接启动模拟器,今天就告诉大家方法。本人一台陈旧的服务器内存只有4G,用模拟器跑程序,结果打开Androidstudio内存就不够启动模拟器,总是失败。下面是成功后的效果图

原理

其实就是执行了模拟器的命令行

emulator -netdelay none -netspeed full -avd 4_3

注:4_3为已经存在的模拟器的名字

步骤

每次输入很麻烦,首页写了emulator.sh 的shell脚本

#!/bin/bash
'/home/master/Android/Sdk/emulator/emulator'  -netdelay none -netspeed full -avd android

前面这个就是android sdk的emulator安装路径 

运行

打开终端命令行,我的shell文件在桌面

/bin/bash emulator.sh 或者./emulator.sh

猜你喜欢

转载自blog.csdn.net/knockheart/article/details/105274070