没有兼容的目标被发现...真正的设备,日食 [英] No compatible targets were found... real device, eclipse
问题描述
我正在执行 http://developer.android.com/培训/基础/ firstapp / running-app.html
当我尝试
I'm performing http://developer.android.com/training/basics/firstapp/running-app.html When I'm trying
设备
Run on a Real Device
从Eclipse我得到
from Eclipse I get
Android AVD错误
Android AVD Error
与
否找到兼容的目标...
No compatible targets were found...
为什么我尝试在AVD上运行,如果我连接了真实的设备?如何解决?
Why it tries to run on AVD if I have connected real device? How to fix it?
推荐答案
您的项目的第一个右键单击
- >运行方式 - >运行配置
First right click of on your project ->Run As -> Run configration
现在选择目标选项卡和单击单选按钮始终提示拿起设备
Now Select the Target Tab and Click Radio button "Always Prompt to pick up the device"
现在您应该从SDK管理器安装Google Usb驱动程序。
Now you should have to install Google Usb Driver from the SDK manager.
现在您必须允许在设备上进行usb调试。转到设置 - >应用程序 - >开发(在API 10级)。另外还有一件事,你的最小/最大/目标必须等于你的设备(android:targetSdkVersion =10)您的AndroidManifest.xml。
Now you must allow usb debugging on device.Go to Settings->Application->Development(on API level 10).Also one more thing your min/max/target must be equal to your device(android:targetSdkVersion="10") in your AndroidManifest.xml.
在执行这些步骤后,再次从eclipse运行您的应用程序,您的移动连接将会发现您的移动设备像
After Doing these steps again run your app from eclipse with your mobile connected you will find your mobile like this
这篇关于没有兼容的目标被发现...真正的设备,日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!