没有找到兼容的目标...真实设备,eclipse

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20824120/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:25:59  来源:igfitidea点击:

No compatible targets were found... real device, eclipse

androideclipse

提问by Andrej B.

I'm performing http://developer.android.com/training/basics/firstapp/running-app.htmlWhen I'm trying

我正在执行http://developer.android.com/training/basics/firstapp/running-app.html当我尝试

Run on a Real Device

在真实设备上运行

from Eclipse I get

从 Eclipse 我得到

Android AVD Error

安卓 AVD 错误

with

No compatible targets were found...

没有找到兼容的目标...

Why it tries to run on AVD if I have connected real device? How to fix it?

如果我连接了真实设备,为什么它会尝试在 AVD 上运行?如何解决?

回答by Talha Qamar

First right click of on your project ->Run As -> Run configration enter image description here

首先右键单击您的项目-> 运行方式-> 运行配置 在此处输入图片说明

Now Select the Target Tab and Click Radio button "Always Prompt to pick up the device" enter image description here

现在选择目标选项卡并单击单选按钮“始终提示拿起设备” 在此处输入图片说明

Now you should have to install Google Usb Driver from the SDK manager. enter image description here

现在您应该必须从 SDK 管理器安装 Google Usb 驱动程序。 在此处输入图片说明

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.

现在您必须允许在设备上进行 USB 调试。转到设置->应用程序->开发(在 API 级别 10 上)。此外,您的 min/max/target 必须等于您的设备(android:targetSdkVersion="10")在您的 AndroidManifest.xml 中。

enter image description here

在此处输入图片说明

After Doing these steps again run your app from eclipse with your mobile connected you will find your mobile like this enter image description here

再次执行这些步骤后,在连接手机的情况下从 eclipse 运行您的应用程序,您会发现您的手机是这样的 在此处输入图片说明

回答by Jesus Dimrix

Change usb port if it doesn't work try change the cable even if ht e good .don't ask me why this is happening .

如果它不起作用,请更换 USB 端口,即使 ht e 良好也尝试更换电缆。不要问我为什么会发生这种情况。

回答by Boldijar Paul

You also need to install your phone android device. Did you already installed it? Device manager should look like this - http://s9.postimg.org/4s0s0ope7/Capture.png

您还需要安装您的手机安卓设备。你已经安装了吗?设备管理器应如下所示 - http://s9.postimg.org/4s0s0ope7/Capture.png

回答by user666

There is a few possibilites. First make sure you install USB Driver. You can see if you install it by right clicking on your Computer > Manage > Device Manager. Then see if there is your Android Device. If not go to your SDK folder > extras > Google then usb_driver. Install that.

有几种可能性。首先确保您安装了USB驱动程序。您可以通过右键单击您的计算机 > 管理 > 设备管理器来查看是否安装了它。然后看看有没有你的安卓设备。如果没有转到您的 SDK 文件夹 > extras > Google 然后 usb_driver。安装那个。

回答by themrbigfoot

Make sure your device Android version is the same or greater than your min SDK specified in your Manifest. Also make sure you have enabled your devices Developer mode. Settings->Developer->USB Debugging->ON.

确保您的设备 Android 版本与您在 Manifest 中指定的最小 SDK 版本相同或更高。还要确保您已启用您的设备开发者模式。设置->开发者->USB调试->开启。

回答by Mohammed El-Sharnouby

i solved it.... if you are using samsung you need to install samsung kies

我解决了.... 如果您使用的是三星,则需要安装三星凯斯