一 问题描述
android studio 运行时候需要对apk安装的目标手机进行选择,为了每次运行不再选择虚拟机或者真机,只需要进行以下设置。

二 操作步骤
1.选择菜单栏Run选项 并选择Edit configurations....选项

2.在app 下的General 找到Deployment Target Options选项

3.选择Target --> apply--> ok

open select deployment target dialog :默认设置,为每次运行弹出框进行选择。
use device: 真机运行
Emulator: 虚拟机运行
结合自己的开发方式,选择自己合适的方式。我自己因为都是用真机测试所以选择了usb device 选项。
网友评论