未找到兼容的目标......真实的设备,日食日食、未找到、目标、真实

2023-09-05 04:54:43 作者:樱桃煮小丸子

我表演 http://developer.android.com/培训/基础/​​ firstapp /磨合app.html 当我试图

在真实设备上运行

在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?

推荐答案

首先右键单击在您的项目 - >运行方式 - >运行CONFIGRATION

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管理器安装谷歌USB驱动程序。

Now you should have to install Google Usb Driver from the SDK manager.

现在,你必须允许device.Go USB调试设置 - >应用程序 - >开发(在API等级10)。还有一件事,你的最大/最小/目标必须等于你的设备(机器人: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