adb doesn't show nexus 5 device

2019-01-16 07:34发布

Android Studio 0.3.6
Fedora 18 3.11.7-100.fc18.x86_64
Nexus 5 Kitkat

Hello,

I have been using my Samsung Galaxy Tab 3 7.0 running Android 4.1.2 everything works fine with adb.

However, I have just bought a new Nexus 5 device, and when I do the following command adb devices it doesn't show my Nexus 5.

Under Android SDK Manager | Extras | Google USB Driver | status "Not compatiable with Linux"

Because I am running Fedora 18 if I need drivers what drivers for the USB do I need?

Because the Samsung works fine and I can deploy and run my apps, I think my setup is correct. So I am wondering if there is something wrong with my Nexus 5.

I have tried the following:

adb kill-server
adb start-server

Setting the Nexus 5 Camera PTP and media device MTP didn't work.

Many thanks for any suggestions,

21条回答
倾城 Initia
2楼-- · 2019-01-16 08:35

Follow these steps,

  • Enable Developer options in your device. To enable the developer mode, Settings->About phone, tap Build number option 7 times continuously
  • Go to Settings-> Developer options and Turn on USB debugging
  • Make sure you reconnected the device via USB and grant permission on the dialog that appears.
  • From the above steps it didn't work try this step, Go to Settings->Security and turn on Unknown Sources
查看更多
Animai°情兽
3楼-- · 2019-01-16 08:35

What you need to do is this:

Settings | About Phone

Scroll to the bottom to build number. Tap on build number about 7 times. Each time you will get a popup message saying you are x steps away from being a developer

When you get to the final step you will get a message saying now you are a developer

Go back into settings and you will see a new setting Developer options there you will see a lot of options for developers. Enable USB debugging

Re-connect you phone to the usb, and you should see you device under adb devices.

I hope this answer helps someone else.

查看更多
疯言疯语
4楼-- · 2019-01-16 08:38

For those who are still frustrated, if you are using the experimental ART runtime, try switching back to dalvik (in developer options on device)

查看更多
登录 后发表回答