没有目标设备找到android studio 2.1.1 [英] no target device found android studio 2.1.1

查看:1427
本文介绍了没有目标设备找到android studio 2.1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ubuntu 14.04中使用 android studio 2.1.1 。现在我的问题是,我想通过我的手机运行该程序而不使用模拟器。所以我选择了目标作为USB设备,但无论何时我运行这个,下面提到的错误就是rasing。



运行app时出错:找不到目标设备。



我在终端使用 adb devices 命令检查了我的设备。
adithya @ adithya-Lenovo-B460e:〜$ adb devices
附加设备列表
59V8I7HEJJWGGMK7设备



<我也试过选择MTP& PTP.but没有成功。
亲切的帮助我解决这个问题。

解决方案

我之前已经遇到过这个问题。



选择运行,然后选择编辑配置。
在常规选项卡中,选中部署目标选项部分。



在我的情况下,目标已设置为USB设备并且选中了使用相同的设备以便将来启动复选框。



我必须将目标更改为显示设备选择器对话框,然后取消选中该复选框。然后我的设备出现在列表中。


i'm using android studio 2.1.1 in ubuntu 14.04.Now my question is,i want to run the program through my phone without emulator. so i chose the target as usb device but whenever i run this,below mentioned error is rasing.

Error running app : No target device found.

i checked my device by using adb devices command in terminal. adithya@adithya-Lenovo-B460e:~$ adb devices List of devices attached 59V8I7HEJJWGGMK7 device

i also tried with selecting of MTP & PTP.but nothing worked out. kindly anyone help me to solve this problem..

解决方案

I already had this problem before.

Choose "Run" then "Edit Configurations". In the "General" tab, check the "Deployment Target Options" section.

In my case, the target was already set to "USB Device" and the checkbox "Use same device for future launches" was checked.

I had to change the target to "Show Device Chooser Dialog" and I unchecked the check box. Then my device appeared in the list.

这篇关于没有目标设备找到android studio 2.1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆