How to run an android device on an android studios - android

I am currently trying to figure out why my mobile device will not show up in android studios.I have installed the google usb drivers for android studios, and enabled usb debugging. I just have no idea why I can't see the device in android studios.

Make sure to install the device driver. Go to the Device Manager and check it.

'cd' to your sdk platform-tools folder
Check if adb finds your device
./adb devices
If you do not see your device, restart adb :
./adb kill-server
./adb start-server
then re-run ./adb devices and see if it finds your device. Example :
List of devices attached
3a2b522 device

Related

Ecilpse won't recognize my device after upgrading to Kitkat (4.4.2)

I just upgraded my Android device to 4.4.2 and now Eclipse will not be able to choose a running Android device when I want to run my project. The Android Device Chooser shows my device up with a serial number as "????????????" and Target as "unknown" and State as "??". Additionally, I have enabled Developer Options with USB Debugging.
what os are you using. i see that on my linux box with some devices. i normally kill adb and restart it as root and the devices shows up and works correctly. found that solution years ago on stack overflow or something like that. not sure if the same thing is needed with windows/osx. on linux, assuming adb is in your path:
$ killall adb
$ sudo adb devices
otherwise os you're trying to connect it to and the specific device information would probably be helpful in tracking it down.
I have a few suggestions. Try them in this order until it works.
Reboot the phone.
Try turning off and then back on "USB Debugging" on your phone (in Developer Options probably).
open cmd > go to the your Android SDK directory > type cd platform-tools > type ./adb kill-server > then finally type ./adb start-server
References:
Eclipse - Target "unknown" in Android device chooser
Android device chooser - My device seems offline
The solution for my device after updating was to completely uninstall the device driver from device manager and reinstalling it. I am using windows and my mobile was shown as Android Phone and not as Nexus 7. Home it helps someone.

can't find android device in eclipse?

I am running android adt bundle in ubuntu and I am unable to connect my Sony Xperia S and run the applications on it. I saw these pages for setting up the hardware device.I have set up the udev rules ,as stated in the instructions and I have been successful to run ./adb devices and it gives a result as
List of devices attached
CB511YVUQC device
Even if the usb device is being shown but i can't see it in the AVD of eclipse.
Please Help.Thanks.
1.Please check Devices list from eclipse. Check this page also Android AVD not recognizing device but ADB does
2.try adb kill-server, adb start-sever
Maybe, you need activate USB Debugging: Settings -> Applications -> Development - Enable USB Debugging
Put your phone in Mass Storage mode(The default USB connection mode is MTP). After that, either reconnect the USB cable or try resetting adb.
Reset ADB from within Eclipse, and your device should show up.
In Eclipse, open the 'DDMS' Perspective, in the 'Devices' tab, in the far right, there is a triangle, inside of that, select 'Reset ADB'
Go in platform-tools and type adb kill-server then adb start-server platform-tools is in your sdk in my case is E:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools

Adb can't find my device

I was developing an android application from Eclipse, connecting my Acer ICONIATAB A 500, with Android 3.0.1. And I did not have any problem.
Now I'm trying to developing the same application on Acer ICONIATAB A 501, with Android 3.2
and my ADB can't find the new device, while Windows can find it! I set in my tablet Debug USB option active, and I installed the appropriate driver on Windows.
I installed even the last Google USB driver (Rev. 7)
I tried to list the device find form adb with command
adb devices
from command line, but List of devices attached is empty.
What can i do?
execute these line
adb kill-server
adb start-server
if it is mobile device check that in settings, developers options , debugging mode is checked or not
You need to install LGUnitedMobileDriver package from the LG website, even though Windows 7 automatically installed USB drivers for the phone.
Try to update your Android-SDK on your computer (in Eclipse or whatever IDE you are using), this helped me solve a similar Problem.

How to enable MacBook to recognize android devices

For Windows, Google provides USB Driver but Google USB Driver is not compatible with Mac OS and I read that anything did not need to Mac OS and Linux.
I've already set "USB Debugging ON" on my android device.
Followings are my development environment.
OS: Mac OS 10.6.8
Android Device: Google Nexus S
Android OS: 4.0.3
IDE: Eclipse SDK 3.7.2
The application I make uses camera, so I need to debug with devices.
It should just work.
I would imagine there's something else going on. Plug your phone in and try listing it from the command line:
$ adb devices
If it's not, try restarting the adb server:
$ adb kill-server
$ adb start-server
After you restart the server, if the device still isn't listed, unplug then plug in again to a different USB port. Failing that, restart the system.
Once the device appears when using the $ adb devices command, try obtaining a shell:
$adb shell
If that fails, I would make sure your SKD is up to date as well as the ADT Eclipse plugin.
I've had similar issues too and it seemed like it was related to the USB hubs not working properly. Trying resetting your PRAM and see if that helps.
Your Android device needs to be in Developer Mode.
Go to Settings > About phone and tap many times on the Build-Number.
See here: http://www.gottabemobile.com/2013/11/09/disable-sms-text-google-hangouts/

How to run or debug on android phone instead of emulator?

Android emulator is so slow that it is not possible to test run applications. Is there anyway to debug/run applications on real phone with IDE instead of emulator?
You can generally switch on USB debugging on your handset and connect it up to your PC over USB. The handset will then appear to adb in the same way as an emulator. You might need to download drivers from your handset manufacturer for your phone.
On my HTC desire the setting is under:
Settings -> Applications -> Development -> USB Debugging
Enable USB-Debugging on your phone. Connect it to your computer. ADB should recognize it and you can use it the same way as a virtual device.
If ./adb devices lists your phone as a lot of question marks, then it is lacking some permissions. To fix this, restart the adb server as root. Something on the line of:
~$ ./adb devices
List of devices attached
emulator-5554 device
????????????? device <--- your phone
~$ sudo -s
~# ./adb kill-server
~# ./adb devices
List of devices attached
emulator-5554 device
1232345345345 device <--- your phone
I realize the context is for Windows, but I had the same issue on Linux (Fedora). Creating a new file in /etc/udev/rules.d/ was necessary (and restarting adb as Hyperboreus indicates).
This is indicated clearly at http://developer.android.com/tools/device.html.
fwiw
For Windows Users:
1. Go to Command Prompt
2. Type cd /path/to/adb.exe
3. Type adb.exe devices
4. Type adb.exe kill-server
5. Type again adb.exe devices
If you get your Device, Its fine. If not, Try once again.

Categories

Resources