I'm trying to get my device to debug my software but it won't show up in the AVD list. The ADB can see it and so does the Eclipse device manager. I can get an interactive shell using adb etc.
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices
List of devices attached
BX9038ZRUV device
Does anyone understand what's going on and how I should fix it?
I'm running Windows 7 and my phone is a Sony Ericson Xperia S running Android 4.0.4.
avd is only for virtual Device. What you have to do is: Run Configs> change to "Ask everytime you run app" , or your real device.
AVD stands for Android Virtual Device, your phone is a real one. It should show up in the Select target list when you run or debug an application.
The AVD list only the virtual devices (emulators). Select "Always prompt to pick device" in your run config!
Related
When I run my android project in real devide (Asus ZenFone 4 ,android 5.0).Eclipse show me this error .
But when I run this project in Emulator(SamSung Galaxy S3,HTC EVO...) .It run ok.
I tried to look on the internet without success.Please help me.
In device manager of Windows, please check how your device is recognized.
It is correct if your device is recognized as "Android Composite ADB Interface" under Android Device. In my case, my device was "ASUS Android Composite ADB Interface". There was a prefix "ASUS". This interface was very unstable. Therefore, I deleted this driver, and reinstalled "Android Composite ADB Interface" which does not have a prefix "ASUS". Then, no errors appeared in my case.
I'm having issues running my Android application on a Motorola XT907 phone. I'm using Eclipse. USB debugging is enabled on the device, and I was able to get my application on two other phones, yet I'm having trouble with this one.
Eclipse is set up so that I have to select the device when I run the application.
In my manifest, minSdkVersion is 14, and targetSdkVersion is 19. The phone I'm using is running 4.4.2.
In the project properties, the Project Build Target is set to Android 4.4.2.
I'm running Windows 8.
Here is what I tried so far:
Rebooted the device.
Ran commands to restart adb. (adb kill-server, adb start-server)
Restarted Eclipse
Restarted my computer
Lastly, I have tried manually installing driver software, but I am unable to do this properly. This was my procedure:
Open Device Manager
Right click on XT907 under Portable Devices and select Update Driver Software...
Select Browse my computer for driver software
Select Let me pick from a list of device drivers on my computer
Select Have Disk...
Browse to adt-bundle-windows-x86_64-20140321/sdk/extras/google/usb_driver/android_winusb.inf and click Open, then OK
This is where I run into an issue. I get a dialog with the title "Select Device" that says "The folder you specified doesn't contain a compatible software driver for your device. If the folder contains a driver, make sure it is designed to work with Windows for x64-based systems."
Does anyone know how to solve this issue?
try this:
on your phone, activate usb debugging (and enable ADB);
connect the phone to the same network of your pc. connect USB too.
in your command prompt go to your adb.exe folder (.../sdk/platform-tools/) and execute adb connect (your mobile IP)
I use this on my Samsung nexus without drivers installed.
Did you try the driver from the motorola site of this phone :
https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/89608/p/30,6720,8577
?
Before asking my question, I have looked through a few threads that share the same problem as me and have tried all the given solution with no success. I am from Malaysia.
I cannot get my device to be detected to test my app on my phone. I have checked both the "Unknown sources" and "USB debugging" settings in my phone. I am using eclipse. But if I create a random virtual device, my app is able to run there.
Okay so I am using a Motorola Atrix 2. And I'm using Windows 8 Pro 64 bit
I have downloaded android SDK bundle from here : http://www.motorola.com/sites/motodev/us-en/motodev_lp.html
I have also tried downloading the latest driver with no success. I have also added this line in the manifest android:debuggable="true"
I have tried both as a mass storage device and a media transferring device.
I would appreciate any help a lot because as of now, I cannot progress further into developing an android app and that saddens me. :(
I have attached a picture of which my android phone should be detected in the window, but as you can see, none.
https://pbs.twimg.com/media/BJu1XSgCYAEGCUd.jpg:large
go to /your-android-sdk-directory/platform-tools using command prompt.
type
adb kill-server
adb start-server
adb devices
n see whether ur device is detected now or not...
Note: if you're using a Linux machine then put ./ before adb
Install proper drivers for your adb devices, from Android-SDK archive or Motorola site.
If you are on Windows machine, go to the device manager find your device, and select folder with drivers for it.
Open you windows os's explorer, have a look at the process, if there two or more process hold your adb, try to exits the process
Check that the android:minSdkVersion is lower or equal to the Version running on the phone. If it is higher it wont show on "Android Device Chooser"
Install and run programs/drivers with admin rights.
Have you installed Motorola Device Manager?
When debugging Samsung and HTC devices I got it to work by installing that kind of software (for syncing the devices to the computer).
Download from the following: ABD Universal Driver
and install it. Make sure you have your device plugged in before installing and make sure you are on USB debug mode on the phone settings.
Following on from ADB not recognising Nexus 4 under Windows 7 I am having problems getting the Eclipse android development environment to recognise my new Nexus 4. My privious Nexus S had no problems.
I believe I have followed all the advice in this previous post but am still stuck.
Can anybody who has succeeded getting the nexus 4 available for android development on windows 7, tell me what their driver detail are for the "Android Composite ABD Interface"? Mine say:
* Driver Provider: "Google Inc"
* Driver Date: 27/08/12
* Driver Version: 7.0.0.1
When my phone storage is set to either PTP or MTP, I still can't see it through the eclipse "android virtual device manager".
When set to PTP, if I run the "adb devices" command described in the linked article, I do get an entry appearing in the dos box, but nothing in the "android virtual device manager" in eclipse.
The solution is to connect your device with PTP instead of MTP and, it works.
Connected devices are not visible in AVD manager. AVD manager is for emulators.
To show connected devices, you use only ADB with this command :
adb devices
This is great step by step tutor for it:
http://androidsecurity.wordpress.com/2013/06/05/install-google-nexus-4-adb-usb-drivers-on-windows-android-studio/
Uninstall the device driver completely from Windows and re-install it.
If you dont see the device in the Devices lists:
First, you need to make sure USB debugging is enabled on your device. Settings->DeveloperOptions: Turn on debugging and enable USB debugging. Ideally, you will install the USB drivers from google, and it will work fine: http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver. There are some cases that new installation may mess up the device connection. You may want to try these:
It may lost the connection, so you can try:
adb kill-server
adb start-server
adb devices
Updating to new tools may mess up the settings:
Go to Storage Options and try to set as Media(MTP) or Camera(PTP) connection. Swtiching to one of them will help
Revoke authorizations, disable usb debugging and then enable
Your Nexus 4 isn't a virtual device, so won't show in Virtual Devices Manager.
If you open the Devices view, then you should see your Nexus 4 listed, and when you run your app it should prompt for running it on as physical or virtual device.
I have a htc wildfire phone and i have developed one application in android 2.1 using eclipse IDE now its time to run it on the actual device.
so far i have done following.
i have set my application as "debuggable" in my Android Manifest.
i have download the driver that is setup_3.0.5511.exe (HTC Sync)
i have connect my device via usb to my pc.
i tried running abd devices and its giving me 'HTXXXXXXXX device'
apart form these when i operate something in my phone i can see the log information in my eclips LogCat section.
Moreover when i open Android SDK and AVD Manager all i can see the Virtual devices listed ; there is not actual physical device is shown over here.
I am using Windows XP operating system and HTC Wildfire phone.
The physical device will not be listed in the AVD manager. I'm not sure how things work in Eclipse but from the command line you can run the following command to install an APK on your phone:
adb -d install -r yourapp.apk
The -d specifies that you want to install on a device rather than the emulator. The -r just means that the app will be reinstalled if it already exists.
Maybe you need to enable USB debugging in the phone settings, see this link