Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio wont recognize Nexus 7 as device

I am having trouble running an app I am developing in Android Studio on my Nexus 7. I have successfully gotten this to work before using the same tablet and computer (running Windows 8), but since having my laptop repaired and everything wiped I'm convinced something with my dev environment is messed up.

When I go to run the project, there are no available devices, so it is not recognizing my Nexus 7 anymore.

Things I have tried

  • making sure my computer recognizes the device and that I have the Nexus 7 driver installed from ASUS
  • going to the SDK manager and ensuring I have the Google USB driver installed
  • closing Android Studio and re opening it, restarting my computer, restarting my Nexus 7
  • killing adb.exe from the task manager
  • ensuring I have USB debugging enabled and toggling that on and off
  • switching from MTP to PTP and back again (currently connected as MTP, not sure if that is correct)

Any help would be greatly appreciated. This is very frustrating and I would like to just get back to developing again.

Update- I just noticed that when I go to developer options, "Wait for debugger" (near where you toggle USB Debugging) is grayed out. I think this has something to do with it but I'm not sure how to enable it.

like image 289
Kah Avatar asked Mar 18 '23 01:03

Kah


1 Answers

I got it!

This was at least the issue in my case, I hope maybe this will help someone someday, apparently I had not installed the adb driver properly:

Search for Device Manager from the search bar on the start screen Open Device manager, click on your Android device Select"Update Driver Software"

BOOM. Now Android Studio recognizes the device. I know this may not be the solution for everyone, but its worth a shot if you are having trouble testing apps on your device.

like image 168
Kah Avatar answered Apr 01 '23 04:04

Kah