简体   繁体   中英

Running Android Application on Real Device

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 a 2.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 2.3.6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM