Android development: No compatible AVD or devices? - android

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'

Related

Android Studio: USB device not recognized as Android device

I am trying to test an application on my Android phone (Samsung Galaxy S8), but I cannot see it in the available devices menu in Android Studio. I can see it as a USB device is not recognized as an Android device.
This seems strange, considering that I have enabled developer mode on my phone. Furthermore, when I check to see that the driver for the device updated to the latest version, it shows that it is updated correctly.
If you are sure you did everything right, but you are still facing this problem, try to run this command in cmd:
adb kill-server
After that reconnect your phone and run:
adb start-server
And check if your phone is in devices lists by run:
adb devices
(In some cases you should restart the Android studio)

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>

Eclipse - Target “unknown” in Android device chooserr

I am using Samsung GT-S6802. When I try to select it in the 'Android device chooser', Eclipse recognizes the phone but not the target. It says target "unknown". Because of this problem, I can't choose the phone as the Android device.
How can I get Eclipse to recognize the target?
This error can have multiple reasons. Try restarting adb with this shell command:
adb kill-server && adb devices
This restarts the adb server and outputs a list of detected devices.
If the target is still known restart the debuggin on the device. If that still not help reboot the device.

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)

Android Device Debug stopped after plug other phone

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"

Categories

Resources