Android Studio doesn't see device

后端 未结 30 2338
南方客
南方客 2020-11-22 14:44

The AVD Manager in Android Studio doesn\'t show my device but adb devices does show it. Am I missing something obvious here?

相关标签:
30条回答
  • 2020-11-22 15:30

    I have found that what works for me is:

    • CD to your sdk platform-tools folder

    • Check if adb sees your device

      ./adb devices
      
    • If it displays 'List of devices attached' and a blank line below, then restart adb as follows:

      ./adb kill-server
      ./adb start-server
      

      then re-run ./adb devices and see if it picks up the device, eg as follows:

      List of devices attached
      015d2bc285601c0a device

    0 讨论(0)
  • 2020-11-22 15:31

    On your device:

    Go to settings/ developer settings/ allow USB debug mode

    If 'allow USB debug mode' option is disabled. Then you might have the device currently connected to your PC. Disconnect the device and the option should now be available

    Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

    If it still doesn't help, you can google it with this expression:

    How to enable developer options on YOUR_PHONE_TYPE

    0 讨论(0)
  • 2020-11-22 15:31

    I plugged my phone in and it was detected fine (no need for device manager or anything like that).. but Android Studio wasn't seeing it.

    I found it takes two requirements to be met

    - PTP (not MTP)
    - USB Debugging mode on
    

    For PTP , go to settings..storage..usb connection..PTP (For MTP/PTP , maybe on my nexus it's there, but on my doogee I see it under 'developer options' .. then under networking , above input, it says "select usb configuration")

    For USB debugging, settings..about..tap build about 7 times, then a new option appears for usb debugging and you can turn it on.

    Added this is also relevant for USB debugging or MTP/PTP being moved https://android.stackexchange.com/questions/213059/where-is-the-mtp-and-ptp-option-in-android-9

    0 讨论(0)
  • 2020-11-22 15:31

    If every configuration is sorted, what worked for me was to switch the device to be connected at PTP and then back to MTP.

    0 讨论(0)
  • 2020-11-22 15:32

    To change what your application defaults to when you click run or debug in Android Studio, follow these steps:

    1. go to Run

    2. Click on Edit Configurations

    3. Select the project

    4. find the Target Device section under the General tab on the Android Application page.

    That seems to be where you toggle what the project builds to. If you're importing a project it actually defaults to Emulator, not sure why. You can also select "Open Select Deployment Target Dialog" to list both connected as well as emulated devices.

    0 讨论(0)
  • 2020-11-22 15:33

    In my case

    android studio suddenly stop seeing my device

    I fix it by change USB option to Media device (MTP)

    how to get USB option from storage USB Computer Connection

    check Debugging from developer options

    try re-run on device , it should work

    issue

    USB option was charge only

    UPDATE ANSWER 26/7/2016

    there many reasons like not enabling developer mode --> USB debugging(if you dont see developer option click 7 times at build number )

    but I face another issue every thing was works just fine suddenly android studio cant see my device

    to fix this issue you need to restart adb , from terminal

    adb kill-server
    adb start-server
    

    or from ddms

    in devices section --> click at small arrow down --> restart adb

    0 讨论(0)
提交回复
热议问题