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

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

问题描述

我在 ubuntu 14.04 中使用 android studio 2.1.1.现在我的问题是,我想在没有模拟器的情况下通过手机运行该程序.所以我选择了目标作为 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.

运行应用时出错:找不到目标设备.

我在终端中使用 adb devices 命令检查了我的设备.adithya@adithya-Lenovo-B460e:~$ adb devices连接的设备列表59V8I7HEJJWGGMK7装置

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

我也尝试过选择 MTP &PTP.但没有解决.好心人帮我解决这个问题..

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.

就我而言,目标已设置为USB 设备",并且选中了使用相同设备进行未来启动"复选框.

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.

如果您的设备仍然没有出现,那么您必须再次在智能手机设置中启用 USB 调试.

If your device still doesn't appear, then you have to enable USB-Debugging in the smartphone settings again.

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

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