Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Pixel not found in Android Studio

Having trouble with Android Studio connecting to my Pixel phone. I'm sort of out of ideas and am looking for suggestions. I feel like I'm missing an obvious step.

Things I've done:

  • Made sure developer options is on with USB debugging on.
  • Have tried switching from MTP to PTP.
  • My computer recognizes the Pixel just fine under windows 8.
  • Made sure android studio is up to date including "Google USB Driver" installed under SDK tools.
  • My previous phone (Droid mini) connects just fine.
  • Tried different USB ports for the cable to my phone.
  • like image 611
    Zoltar Avatar asked Dec 20 '16 23:12

    Zoltar


    People also ask

    Why is Android studio not detecting my phone?

    Troubleshooting If your computer runs Windows and the emulator installation doesn't work, see Install OEM USB Drivers for the appropriate USB driver for your device. If Android Studio doesn't recognize your device: try unplugging the USB cable and plug it back in or restarting Android Studio.


    2 Answers

    Encountered this problem today as I tested on other people's phones. I found 4 possibilities why a device may not be recognized:

    • Case #1: The USB cable supports charging but not data transfer.
    • Case #2: Developer options haven't been enabled on target phone (see: https://www.verizonwireless.com/support/knowledge-base-215055/)
    • Case#3: Developer options enabled, but USB debugging hasn't been enabled. Go to Settings > System > Developer Options > USB Debugging
    • Case #4: Some (but not all) phones require MTP transfer mode to be enabled. It can be enabled by sliding a finger from the top of the screen and tapping "Android system - USB charging this device" > Tap for more options > Transfer files.

    Hope this helps someone ^_^


    EDIT: It's come to my attention that there's another possibility. I don't know what causes this, but if you get really stuck, sometimes you need to go into Settings > Developer Options > Debugging > Revoke USB debugging authorisations. This will reset your device USB pairing fingerprint which will often bring the phone back as a device target in Android Studio.

    like image 99
    DrewT Avatar answered Sep 30 '22 23:09

    DrewT


    I have had the same trouble with my Google Pixel 2 (Android 9); I couldn't connect it to ADB in Android Studio 3.3. In my special case, AS runs on Kubuntu 18.04 in a VMware Workstation on a Windows host. I have to do following steps every time I want to connect the phone (the phone is already in developer mode):

    • Plug phone via USB into the computer (and connect it to the VMware guest, if you use it)
    • Phone: Swipe down the notification bar, there should be a message 'Charging the device via UDB'
    • Tab on it and change the 'Use USB for' from 'No data transfer' to 'File trasfer'

    You can activate 'USB debugging' on your phone's developer screen before or after this procedure, both works for me.

    like image 42
    Christian Schulzendorff Avatar answered Sep 30 '22 21:09

    Christian Schulzendorff