Once or twice a day Android Studio doesn't recognize any devices attached to my computer. Even
adb devices
doesn't show anything. The only thing that makes my devices reappear is restarting my computer. Even
adb kill-server
adb start-server
doesn't show any devices. Does anybody know why and how I can make adb recognise my devices without restarting my computer?
Something strange with my USB port I reckon. Reinserting the cable mostly fixes the problem.
check lsusb , if your cable or usb port have problem your device does not appear
otherwise if you see your device in list and your adb devices is empty, maybe the problem is adb files config, check your VENDOR ID in adb_usb.ini , the VENDOR ID must be same as lsusb id
Related
I am stuck here. I connect a USB drive from my laptop to the android device but still vs code shows no device. Image Attached
Considering that you have successfully installed Flutter and Dart and their respective VS Code Plugins.
There are 2 ways to do it
If you have a physical Android Device, you must enable USB debugging on your device and then you can connect it directly to your machine. Once the device is successfully connected and detected by your machine, then its name would appear on bottom right corner in VS Code window.
If you don't have a physical device, then you must create an emulator image of Android platform of your choice. The emulator image must be created from AVD manager present in Android SDK. Once the AVD image is ready and running, the name of the AVD would appear on bottom right corner of VS Code window.
If you see your device name on bottom corner of VS Code, then press F5 and wait for the app to load on the device/emulator.
There are basically two ways before the app is released.
USB Debugging
Wireless Debugging
Connect via USB: adb tcpip 5555
Disconnect USB, Get Phone Ip Address Settings > About Phone > Status.
Now adb connect <Your IP Address>
Refer:
How to connect a device with ADB over WiFi when making app with Flutter?
https://appmaking.com/run-flutter-apps-on-android-device
I have a OnePlus X device, which I use with Eclipse for debugging my apps. I had a Nexus 4 which worked perfectly.
I have a late-2012 macbook pro, and I tried to plug my device directly in the usb port of the computer, and with an external alimented hub.
When I plug my OnePlus and I use the command "adb devices" I can see my device. Troubles comes when I run the Android app from eclipse... At this point, my device is disconnected and the app is not launched. And I can't see my device anymore with adb device. All I can do is restarting the adb server, but it will still disconnect after I tried to run the app in Eclipse
I tried different cables, different usb in, but nothing change.
Anyone has a solution ?
Is there any way to start the phone automatically after every 'n' minutes after shutdown... I am developing a solution for this but not getting any success. Any help or link to the solution will be highly recommended. Thanks in advance.
You can not turn the device on from an app on the device, for the obvious reasons. There is however a way to boot the device from the computer.
If the device had usb debugging turned on, you can use adb and run adb reboot to boot the device connected by usb to the computer.
I have installed all required drivers of mobile. My device is able to detect in' adb device'. but while running application, my mobile device is not coming..
In "device" it is able to locate.
I have gone through: "Run-> Run Configuration-> target" but there is no any active device.
yeah, I experienced that too. The reason can be anything... Try updating you adb / usb drivers. Maybe you gonna need a vendor-specific usb-driver.
Last time when I had problems with detecting my Sony Xperia S, I solved them by turning USB Modem in Preferences on.
this issue solved...
I changed SDK folder with another latest version of SDK externally.
Restarted Computer. Configured device.
I have windows 7 64 bit and Android Debug Bridge version 1.0.26. My tablet is view pad 7
When I connect it with my computer it shows
usb debugging connected
But when I write adb logcat
it shows me
waiting for device -
When I connect my htc phone with the same computer and type
adb logcat
it shows me the log of my phone. Basically I think it something related to driver as the device is connecting properly but not showing me the logs.
I have also tried this with motodev and found same results.
Go to settings, development > enable usb debugging. If it's not there try REMOTE ADB. It's on the market for free, it works via WIFI.