Android Device Debug stopped after plug other phone - android

I've launched and debugged several applications on my Samsung Galaxy S Device,
however, yesterday I plugged in another Device (Same type) to upload music
and now, when I try to launch or debug application, Eclipse wants me to
choose between 2 devices (only 1 is online), and when I select this option,
I'm getting the following Error log:
[2011-03-30 11:36:56 - ****] Uploading ****.apk onto device '1000b1eda2c2'
[2011-03-30 11:36:56 - ****] Failed to install ****.apk on device '1000b1eda2c2': adb rejected install command with: device offline
[2011-03-30 11:36:56 - ****] com.android.ddmlib.AdbCommandRejectedException: device offline
[2011-03-30 11:36:56 - ****] Launch canceled!

Try "adb kill-server" and then "adb start-server"

Related

Expo - Error running adb: more than one device/emulator

I am running macOS Catalina, and have one Android emulator set up in the Android Virtual Device Manager.
Before starting the emulator, on a freshly rebooted system, if I run adb devices I get:
List of devices attached
emulator-5562 offline
After starting the emulator, adb devices returns:
List of devices attached
emulator-5554 device
emulator-5562 offline
If I fire up Expo and try to run on the Android emulator, I get this error:
Couldn't start project on Android: Error running adb: more than one device/emulator
It looks like the offline emulator-5562 is the problem here? But it's still there even after rebooting my computer. All the advice I've read (i.e. adb kill-server and adb restart-server) makes no difference. There are no Android devices connected via USB.
How can I delete the "offline" device? Or alternatively, how can I point Expo to the one actual Android emulator I have running?
Try this:adb -s emulator-5554 <command>

Android development: No compatible AVD or devices?

I am getting the following error in my console in eclipse when I try to run my application on my Samsung S4 phone:
[2014-06-30 13:49:53 - Multapply] Android Launch!
[2014-06-30 13:49:53 - Multapply] adb is running normally.
[2014-06-30 13:49:53 - Multapply] Performing com.example.multapply.Splash activity launch
[2014-06-30 13:49:53 - Multapply] No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.
This is strange as I ran the application yesterday without any problems. I am also sure that debugging is enabled on my phone?
First verify whether your device is connected or not by giving following command:
'adb devices'
It should show your device name along with state as 'device'.
If your device is not displaying then try these commands,
'adb kill-server'
'adb start-server'

Geting APK file to work

I know to install apk file on emulator you type,
adb install [apk file name]
So, I followed and I have received this error,
antz#antz-90X3A:~/Android/androidmalware$ adb install 01_AngryBirdsRiov110.apk
error: device not found
- waiting for device -
when i checked android android virtual device, I have an device.
Do I have to something else to link?
Command for running emulator is:
emulator -avd <youravd.avd>
Sounds like you don't have an emulator or device connected to your computer. You can check if you have a device available by typing:
adb devices
Just because you created an AVD doesn't mean it is running. You need to start an emulator using the AVD you created.

Device connection lost after APK install from MacBook

I'm running into a problem on my MacBook Pro. I type in "adb devices" with my device plugged in and I can see it listed there. However, when I install the application with "adb install" the connection gets dropped. This happens both in the Android SDK and in Eclipse. When I launch it in Eclipse I get this exception:
[2012-05-11 08:12:34 - Unexpected error while launching logcat. Try reselecting the device.] device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:397)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:102)
at java.lang.Thread.run(Thread.java:680)
I unplug the device and reconnect it and it shows up right until the moment when I try to run the application.
This problem does not seem to happen on my Windows box.
(I do not have tethering on the Macbook and it is disabled on my Android device)

Unable to launch app in Android device

I am unable to run my app on my android device. While launching the app it gives some IOException and cancel the app launching.
Like this :(in console)
[2010-09-18 02:45:53 - Lime] Android Launch!
[2010-09-18 02:45:53 - Lime] adb is running normally.
[2010-09-18 02:45:53 - Lime] Performing com.gtx.gpstrackinglime.splash activity launch
[2010-09-18 02:45:57 - Lime] Uploading Lime.apk onto device 'HT923GZ00530'
[2010-09-18 02:46:12 - Lime] Failed to upload Lime.apk on device 'HT923GZ00530'
[2010-09-18 02:46:12 - Lime] java.io.IOException: Unable to upload file: timeout
[2010-09-18 02:46:12 - Lime] Launch canceled!
You werent able to upload the apk, do you have drivers installed for that handset? and running adb devices shows a device attached?
Hi you jst need upgrade your usb driver, follow this ref link http://developer.android.com/sdk/win-usb.html, after upgrading you need to uncheck USB debugging, disconnect cable from device and then check USB debugging and connect cable to device again. this'll solve your problem..
Try accessing the platform-tools folder, that is in android-sdk-folder/platform-tools.
And inside this folder type this, with your phone disconnected from USB:
on Linux: ./adb kill-server "hit enter" and type ./adb start-server
on Windows: adb kill-server "hit enter" and type adb start-server
Now connect your phone and type:
on Linux: ./adb devices
on Windows: adb devices
Now you must see your device ID on the Screen. That worked for me.

Categories

Resources