Android Studio 不会将 Nexus 7 识别为设备 [英] Android Studio wont recognize Nexus 7 as device

查看:34
本文介绍了Android Studio 不会将 Nexus 7 识别为设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Nexus 7 上运行我在 Android Studio 中开发的应用程序时遇到问题.在使用相同的平板电脑和计算机(运行 Windows 8)之前,我已经成功地让它工作了,但是自从我修理了我的笔记本电脑并且所有东西都被擦除了我确信我的开发环境有问题.

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.

当我去运行项目时,没有可用的设备,所以它不再识别我的 Nexus 7.

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

我尝试过的事情

  • 确保我的计算机识别该设备并且我有 从华硕安装的 Nexus 7 驱动
  • 转到 SDK 管理器并确保我已安装 Google USB 驱动程序
  • 关闭 Android Studio 并重新打开它,重新启动我的计算机,重新启动我的 Nexus 7
  • 从任务管理器中杀死 adb.exe
  • 确保我已启用 USB 调试并打开和关闭它
  • 从 MTP 切换到 PTP 再返回(当前连接为 MTP,不确定是否正确)

任何帮助将不胜感激.这非常令人沮丧,我想重新开始开发.

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

更新 - 我刚刚注意到,当我转到开发人员选项时,等待调试器"(在您切换 USB 调试的位置附近)显示为灰色.我认为这与它有关,但我不确定如何启用它.

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.

推荐答案

我明白了!

这至少是我的问题,我希望有一天这会帮助某人,显然我没有正确安装 adb 驱动程序:

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"

轰隆隆.现在 Android Studio 可以识别设备了.我知道这可能不是适合所有人的解决方案,但如果您在设备上测试应用时遇到问题,那么值得一试.

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.

这篇关于Android Studio 不会将 Nexus 7 识别为设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆