运行在真实设备Android应用程序 [英] Running Android Application on Real Device

查看:146
本文介绍了运行在真实设备Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个真正的Andr​​oid手机上运行我的Andr​​oid应用程序。我做这个previously,但现在我有一个不同的android手机我想连接。这款手机是HTC野火A3333 - Android的版本2.2.1(旧我知道)......如果这是任何帮助。

我已经连接的设备,并在Windows设备管理器显示出来。

我已经连接的驱动程序管理器内的手机,在pviously工作$ P $,我(相同位置 sdkhome \\演员\\谷歌\\ usb_driver \\ I386 )和它总是说司机是最新的更新。

我只是不能让它出现在Android设备列表中了!

甚至杀害的ADB服务器版和再次启动后,它出现在命令提示符下连接的设备,但仍然在Android设备选择器不显示。我重新启动我的电脑并重新连接电话很多次了。

任何人可以帮助我在这里?


解决方案

@ecrip

多德您的应用程序需要 2.3.6 [姜饼API 10] 最低目标,但你有一个 2.2.1(Froyo的API 8)设备如你所说

 <采用-SDK
        安卓的minSdkVersion =10
        机器人:targetSdkVersion =18/>

在提示符的要求API 10
你有的Andr​​oid 2.2.1(API升级Froyo 8)如你所说所以它不是在这里上市,但在​​指挥显示提示这就是问题所在。

解决方案

要么使用更新版本的设备或应用程序的较低的minSdkVersion

@ecrip如果亚行是在命令中列出,那么要确保最小SDK或您的应用程序必须小于或等于设备API版本

这是与亚洲开发银行很常见的问题
最常见的解决方案,如果它突然停止显示连接的设备或使其离线,永不在线
然后

重启Eclipse

重新启动系统

或者

如果USB调试启用做到这一点
在命令提示符下移至< SDK> /平台的工具

  ADB杀服务器亚行启动服务器ADB设备

注意:


  1. 在我的 CMD 我很直接指挥亚行因为我已经设置了亚行路径环境变量

  2. 如果您知道连接PC设备的IP,那么你可以使用它连接以下

    ADB连接<您的IP地址>



如果USB-调试desabled做下列之一

请你的Andr​​oid设备上启用USB调试
为Android 2.3.6

设置>>应用程序设置>>发展

有关的Andr​​oid 4.2标签

开发设置

I'm trying to run my Android App on a real android phone. I've done this previously, but now I have a different android phone I want to connect. The phone is a HTC Wildfire A3333 - Android Version 2.2.1 (old I know)... if that's any help.

I have connected the device and shows up in the Windows device manager..

I've connected the driver for the phone within the manager, in the same location that worked previously for me (sdkhome\extras\google\usb_driver\i386) and it always says the driver is up-to date.

I just can't get it to appear in the android device list at all!

Even after killing the adb sever and starting it again, it comes up with the connected device in command prompt but still doesn't show in the android device chooser. I've restarted my PC and reconnected the phone many times.

Can anybody help me out here?

解决方案

@ecrip

Dude your app needs 2.3.6 [GingerBread API 10] minimum target but you have a2.2.1(Froyo API 8) device as you said

<uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="18" />

In your prompt its asking for API 10 you have android 2.2.1(Froyo API 8) as you said so its not listing it here but showing in command prompt this is the problem

Solution

Either use newer version device or lower minSdkVersion of your application

@ecrip if adb is listed on command then make sure the min sdk or your application must be less than or equal to your device api version

This is very common issue with adb The most common solution if it suddenly stop showing connected device or make it offline and never become online Then

Restart Eclipse

or Reboot System

Alternatively

if usb debugging is enable do this on command prompt move to <sdk>/platform-tools

adb kill-server

adb start-server

adb devices

Note:

  1. In my cmd i am directly commanding adb cause i have set the adb path to Environmental Variable
  2. If you know the Device ip connected to pc then you can connect it using the following

    adb connect <Your iP address>


if usb-debugging is desabled do one of following

Keep usb debugging enabled on you Android device For Android 2.3.6

Settings >> Application Settings >> Development

For Android 4.2 Tab

Dev Settings

这篇关于运行在真实设备Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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