android studio 使用专用的sdk和virtual device image

通过命令行的方式启动android studio中的模拟器

启动模拟器时需要读取下面四个文件 :

FileDescriptionOption to Specify a Different File
kernel-qemu or kernel-ranchuThe binary kernel image for the AVD. kernel-ranchu is the QEMU 2 emulator, the latest version.-kernel
system.imgThe read-only initial version of the system image; specifically, the partition containing the system libraries and data corresponding the API level and variant.-system
ramdisk.imgThe boot partition image. This is a subset of system.img that's loaded by the kernel initially before the system image is mounted. It typically contains just a few binaries and initialization scripts.-ramdisk
userdata.imgThe initial version of the data partition, which appears as data/ in the emulated system and contains all writable data for the AVD. The emulator uses this file when you create a new AVD or use the ‑wipe-data option. For more information, see the userdata-qemu.img file description in the following section.-initdata 
-init-data

 

在sdk/tools目录下 执行./emulator -adv 模拟器的名称 -system system.img -data userdata.img -ramdisk ramdisk.img -kernal kernal-qemu-armv7 的方式启动模拟器 

可以使用emulator -list-avds命令来查看模拟器的列表。

也可以通过命令行创建模拟器

$ ./android create avd -n mydroid -t 1

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值