Is ther any collision between Genymotion and hardware device on Android studio? - android

Is there any collision between Genymotion and hardware device on Android studio?? Yesterday, I tested my android phone as a debug machine on android studio. It worked perfectly. However, today, after installing genymotion and run my project on it, Android studio couldn't detect my phone....
I followed these steps :
check whether USB debugging is enabled
check sony xperia USB drive (I installed it from websites, and reinstalled it automatically after conneting my device)
reset Android device monitor
reboot my phone
reboot my computer
plug on/off usb cable

There is no collision between Genymotion and hardware devices. But Genymotion does come with its own copy of adb which introduces potential adb client/server mismatch possibility. So just delete the adb binary from the genymotion\tools folder (you may need to kill all running adb processes first) and you should be ok.

Related

Android Studio 3.5.2 can't find USB connected device (but found through adb terminal)

The title pretty much says it all: I'm working on an Android Studio (3.5.2) project on my Windows 7 64-bit running laptop, I connect my Samsung J7 (2016) to the laptop through the original Samsung cable but Android Studio simply can't see the device. If I try to do the same on my desktop computer (same Android Studio version but on a Windows 10 64-bit OS) everything works just fine.
Here comes the funny thing: the "adb devices" command shows the device (and I'm 100% sure it's my smartphone since it's the only device connected). The Android Studio toolbar keeps showing "No devices" anyway.
I've spent 3 hours on this and couldn't find a solution. I already tried every suggested solution around the web (stackoverflow.com included), but I achieved nothing:
Disabling/Enabling USB Debug function in the Developer Settings of my smartphone (including revoking USB debugging authorizations)
Running Android Studio as admin (sometimes it solves strange stuff...)
Trying to USB connect through PdaNet+
Android Studio built-in troubleshooting service (re-scanning for devices actually makes me see my smartphone but it's treating it as if it can't be used as a debugging device; anyway the smartphone-computer connection is just fine: I can browse my files and all. Killing and restarting the ADB server does nothing)
Tried connecting both as PTP and MTP
Tried both the Google USB Drivers and the Windows Update drivers (those the computer gets when you first connect the device)
Thanks in advance :)
if you use linux as your PC OS. may be try to install adb will help you..
apt-get install adb
that's work for me.

Android Studio doesn't recognize any emulators

Android Studio is not recognizing any external emulators (phones) connected to it.
I have tried the following mentioned things without any success:
Installed the device driver. (It is working fine. The device recognizes my
phone.)
Turned on USB Debugging.
Kill-server and then start-server commands.
I am using Android Studio for Windows.
Probably you haven't installed the driver for your phone (if you use Windows). For instance, if you use Nexus or Pixel phones, you should install this. If you use Samsung phones, try this link.
It worked for me. If you still cannot see any of the devices, try calling 'Invalidate Caches / Restart' in the File menu in the Android Studio and restarting the system.
Hope it helps!
I had the same problem, my problem was I was using a cable that cam with the phone that acsually would not transfer any data from\to the phone, the moment I changed the cable it worked like magic.
Just try changing a cable 1st, the PC has to recognize the device even if You have no drivers, if Your phone doesnt ask You to give permission to access from PC than the cable is just a charging cable!
Hope it helps.
Set up a device for development (android documentation) :
On the device, open the Settings app, select Developer options, and
then enable USB debugging.
Set up your system to detect your device.
For Windows: Install a USB driver for Android Debug Bridge (adb). For an installation guide and links to OEM drivers, see the
Install OEM USB Drivers document.
When you connect a device running Android 4.2.2 (API level 17) or
higher to your computer, the system shows a dialog asking whether to
accept an RSA key that allows debugging through this computer. This
security mechanism protects user devices because it ensures that USB
debugging and other adb commands cannot be executed unless you're able
to unlock the device and acknowledge the dialog.

No usb devices or running emulators detected

I tried running my first Hello World app in android studio in my samsung phone, but I got this message even though the phone was connected through usb:
no usb devices or running emulators detected
note: usb debugging is enabled in my phone
How can I solve this problem?
Connecting your device for development. (Preferred and Fast developing option)
Open your phone's setting->developer options and turn on USB debugging. Then connect your device.
Download Google Usb Driver from SDK Manager. Install your device's required drivers on your computer. And connect.
Using emulator(slow process)
Create new android virtual device(AVD) and download required sdk versions.
Run your app on AVD.
Hope it helps!!
you can solve this problem by the following:
1-make sure the oem driver for samsung (SAMSUNG_USB_Driver_for_Mobile_Phones) is installed
2-if you have another usb port,try to disconnect your phone,and reconnect in another usb port
the second solution solved this problem well>>>>>
install the Samsung kies3 and it will work
This happened to me after upgrading Android. I am running a Google Pixel phone. When I did the upgrade, the USB Configuration setting on my phone, apparently, changed from MTP (Media Transfer Protocol) to Charging. I changed it back to MTP and it works now. I upgraded from Android 7.1.1 to 7.1.2.

Eclipse not detecting android device

Eclipse is not able to detect my android device even though it is connected to my computer. I had it working on my computer earlier, but my hard drive crashed so I had to reinstall/setup eclipse, and now it doesn't work. I have enabled USB debugging. I updated my USB drivers/ android devices. I tried connecting my android phone first, and then tried my tablet, but there was no change. I tried restarting the ADB server. The android project runs on the emulator, but the emulator takes so long to load and is laggy. I did a lot of research on how to fix this, but nothing is working. In my eclipse console it says, "Failed to find an AVD compatible with target 'Android 4.4W'."
if you have root, you can try to use Wireless adb via wi-fi. for this you must install from GooglePlay app like "wireless adb" run it and connect from cmd like this:
"e:\androidSDK\sdk\platform-tools\adb.exe connect 192.168.0.68:5555"
Also i recommend you to install free third-party android emulator BlueStacks, it work very fast! faster then real device connected by usb
For virtual device try Genymotion
For hardware
-first check if your device is connected - adb devices //some serial number should list. If empty, you need to install proper drivers manually.
also check in windows Device manager
Try to disable USB debugging then enabled USB debugging.
Relay! Yeah it's work.

Android Device Chooser: Cannot Detect Device

I am trying to use my Nexus 4 to run a hello world app. I'm using the Java ADT with Eclipse.
I cannot detect the device.
Nexus 4: Android 4.4.2
Java ADT: build v22.3.0-887826
Windows 7 Professional x64
Java JDK: jdk-7u51-windows-x64
ADB v1.0.31
Project build target is 4.4.2 (API 19). Minimum required version is API 8.
./adb devices shows no devices.
I am in USB debugging mode on the device. I have allowed installation of non-play-store apps.
My computer detects the phone as a media device (MTP), not as a camera (PTP).
I do not get a prompt asking me if I accept an RSA key.
Things I have tried:
Download USB drivers from here: http://developer.android.com/sdk/win-usb.html#top then:
Start > Properties > Device Manager > Portable Devices > Nexus 4 > Properties > Update Driver > Browse > {Download Folder}
I get a popup telling me that the drivers are up to date.
Changing the cable
Changing the USB port
Restarting Eclipse
Restarting the adb server (kill-server > start-server > devices)
Restarting the phone
Restarting the computer
Editing android_winusb.inf, as described here: USB driving on Android - new devices
I have tried everything I've seen on these pages:
http://developer.android.com/tools/device.html
http://androidsecurity.wordpress.com/2013/06/05/install-google-nexus-4-adb-usb-drivers-on-windows-android-studio/
Android Device Chooser -- device not showing up
How do I deploy HelloWorld app to HTC Eris Droid?
EDIT: I tried to enable ADB over wifi. So I installed ADB WiFi off the play store. It needs root permission, so I tried to root my phone using Kingo Root. Kingo Root does not work. It's giving me the message "No Device Connected!". I can transfer files from the device, and it gets detected when I plug it in, so I don't know it what capacity it "is not connected".
EDIT2: I tried to enable ADB over wifi as described here: How can I connect to Android with ADB over TCP?
adb tcpip 5555 gives me "error: device not found". Looks like inability to detect the device is a common failure mode. I suspect that fixing that will let everything else work as intended.
Android debugging via usb can be a bit hit-and-miss. I have one phone that never connects, one that rarely connects, and one that seems to work pretty much every time (I still have to do the 'unplug/replug/restart' shuffle from time to time)
I would suggest investigating WiFi ADB. If it works with your device (not all devices support it) then it'll save you a lot of time in the long term:
Install one of the various WiFi debug apps from the market
Run it and note the IP address and port it gives you
Navigate to where your android sdk platfrom tools are installed (a default Windows install should be C:\Android\sdk\platform-tools
Type adb connect [ipaddress]:[portno] (ex adb connect 192.168.1.100:5555)
If your device supports wifi debugging, it should show up in Eclipse within a couple of seconds, and you never need to do the plug in/unplug/restart shuffle again!
You don't need any third-party application. See this answer and set-up WiFi debugging with ADB.
EDIT:
You don't need root also.
Check my answer here: You should install the correct drivers its really easy by following the steps from the video
Hope that helps! :)

Categories

Resources