Android Studio看不到设备。

时间:2023-01-07 20:41:31

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

Android Studio的AVD管理器没有显示我的设备,但“adb设备”确实显示了它。我漏掉了什么明显的东西吗?

48 个解决方案

#1


148  

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

要更改在Android Studio中单击run或debug时的应用程序默认设置,请遵循以下步骤:

1. go to Run

1。去运行

2. Click on Edit Configurations

2。点击编辑配置

3. Select the project

3所示。选择项目

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

4所示。在Android应用程序页面的General选项卡下找到目标设备部分。

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.

这似乎是您切换项目构建的地方。如果您正在导入一个项目,它实际上默认为模拟器,不知道为什么。

#2


243  

I recently had trouble with this, and regardless of what I did(restart adb, edit adb_usb.ini, restart computer+device+swap usb port, reinstall studio etc. etc.) I just couldnt get it to work, and could not even detect my device using 'adb devices'. Finally after about 2 hours of googling and testing, someone suggested switching to PTP instead of MTP on my device. When I did this I got a popup on my device asking me to allow my mac access and suddenly everything worked(had to restart studio for it to show up there as well though).

我最近在这方面遇到了麻烦,不管我做了什么(重启adb,编辑adb_usb)。ini,重启电脑+设备+交换usb接口,重新安装studio等)我无法让它工作,甚至不能使用“adb设备”检测我的设备。最后,在google和测试两小时后,有人建议改用PTP,而不是MTP。当我这样做的时候,我的设备上有一个弹出窗口,请求我允许mac访问,然后突然所有的东西都工作了(不得不重新启动studio,以便它也能显示在那里)。

I might be bumping this thread now, but it is the first result on google search, and I had a lot of trouble finding an answer for this problem, so I thought this should be added as a solution.

我现在可能会碰到这个线程,但是它是谷歌搜索的第一个结果,我在找到这个问题的答案时遇到了很多麻烦,所以我认为这应该作为一个解决方案来添加。

#3


187  

On your device:

在你的设备:

Go to settings/ developer settings/ allow USB debug mode

进入设置/开发者设置/允许USB调试模式。

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

如果“允许USB调试模式”选项被禁用。然后你可能会有设备连接到你的电脑。断开设备,该选项现在可用。

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.

注意:在Android 4.2和更新版本中,默认情况下隐藏了开发者选项。要使它可用,可以到设置>的电话和tap构建7次。返回到前面的屏幕,以找到开发人员选项。

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

如果它仍然没有帮助,你可以用这个表达式谷歌:

How to enable developer options on YOUR_PHONE_TYPE

如何在您的_phone_type上启用开发人员选项?

#4


49  

Some cables can not been used for developer mode or transfer file. A solution would be change your cable and don't waste time.

有些电缆不能用于开发模式或传输文件。一个解决方案是改变你的有线电视,不要浪费时间。

Trendblog post

Trendblog帖子

#5


38  

I had to killall adb because somehow, Android Studio managed to crash and did not want to communicate with adb anymore. Thus, my device did not show up.

我不得不杀掉所有的adb,因为Android Studio设法崩溃了,不想再和adb沟通了。因此,我的设备没有出现。

So quitting Android Studio, terminating all adb instances in Terminal and starting Android Studio again (should ask if it should enable debugging then) worked.

因此,退出Android Studio,在终端上终止所有adb实例,重新启动Android Studio(应该询问是否应该启用调试)。

#6


37  

It works for me by following steps below:-

它对我的工作如下:-。

If you using Windows, the device won't show up because of driver issue.

如果你使用Windows,这个设备不会因为驱动程序问题出现。

Go to device manager (just search it using Start) and look for any devices showing an error. Many androids will show as an unknown USB device and comes with exclamation mark. Select that device and try to update the drivers for it. for update part follow the link:universal adb

到设备管理器(只需要使用Start搜索它),并寻找任何显示错误的设备。许多机器人将作为一个未知的USB设备显示,并带有感叹号。选择该设备并尝试更新驱动程序。更新部分按链接:环球亚行。

But before that, you have to update your sdk manager and make sure Google USB Driver package is installed.

但在此之前,您必须更新您的sdk管理器,并确保安装了谷歌USB驱动程序包。

When done, the driver files are downloaded into the \extras\google\usb_driver\ directory. Hints: Search "android_winusb.inf" under Windows Start and Open File Location to get the directory mentioned.

当完成时,驱动程序文件被下载到\备用\谷歌\usb_driver\目录。提示:搜索“android_winusb。inf“在Windows启动和打开文件位置,以获取所提到的目录。

Open up your device manager, navigate to your android device, right click on it and select Update Driver Software then select Browse driver software. Follow the file location path previously to install Google USB Driver.

打开您的设备管理器,导航到您的android设备,右键单击它并选择Update Driver软件,然后选择Browse Driver软件。按照前面的文件位置路径安装谷歌USB驱动程序。

Restart Android Studio and Developer Options in your android device and reconnect USB.

在Android设备上重新启动Android Studio和Developer选项,并重新连接USB。

Cheers !

干杯!

#7


25  

My Nexus 5 phone did not have developer options in the settings menu. I had to do the following:

我的Nexus 5手机在设置菜单中没有开发人员选项。我不得不这样做:

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.

在Android 4.2和更新版本中,默认情况下隐藏了开发者选项。要使它可用,可以到设置>的电话和tap构建7次。返回到前面的屏幕,以找到开发人员选项。

#8


19  

After spending some time I found the problem was to enable USB debugging option to on. Just find in your mobile Settings->Developer Option->USB debugging. Just enable it and it works. It might help someone!

在花了一些时间之后,我发现问题是要启用USB调试选项。只要在你的移动设置中找到->开发者选项->USB调试。只要激活它就行了。它可能帮助别人!

Android Studio看不到设备。

#9


14  

In my case

在我的例子中

android studio suddenly stop seeing my device

安卓工作室突然停止看我的设备。

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

我通过将USB选项改为Media device (MTP)来修复它

how to get USB option from storage USB Computer Connection

如何从存储USB计算机连接获得USB选项?

Android Studio看不到设备。

check Debugging from developer options

从开发人员选项中检查调试。

try re-run on device , it should work

试着在设备上重新运行,它应该工作。

issue

问题

USB option was charge only

USB选项只收取费用。

UPDATE ANSWER 26/7/2016

更新答案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 )

有很多原因,比如不支持开发模式——> USB调试(如果你没有看到开发人员选项,在build number中点击7次)

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。

adb kill-server
adb start-server

or from ddms

或从ddms

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

在设备部分——>点击小箭头——>重启adb。

Android Studio看不到设备。

#10


13  

In my case the following steps helped to resolve the issue:

在我的案例中,以下步骤帮助解决了这个问题:

1) Ensure the package "Google USB Driver" is installed in Android SDK Manager

1)确保在Android SDK管理器中安装“谷歌USB驱动程序”。

2) Download "ADB Driver Installer 2.0" from here

2)从这里下载“ADB驱动程序安装2.0”。

3) Run the tool downloaded and connect your smartphone; in my case it showed that the driver had been installed incorrectly and suggested to fix it

3)运行工具下载并连接智能手机;在我的例子中,它显示司机安装错误并建议修理它。

After those steps my Android Studio instantly recognised the device! Both MTP and PTP started to work.

在这些步骤之后,我的Android工作室马上就认出了这个设备!MTP和PTP都开始工作。


Tested for Samsung (Android 4.1.2) and Xiaomi MI4W (Android 4.4.4)

测试三星(Android 4.1.2)和小米MI4W (Android 4.4.4)

#11


7  

Be sure that you have downloaded the correct API for the version you device is using. After updating your device's Android version or switching to a different device you may not have the correct API downloaded on Android Studio. To do this:

请确保您已经下载了您的设备正在使用的版本的正确的API。更新设备的Android版本或切换到不同的设备后,您可能没有在Android Studio上下载的正确的API。要做到这一点:

  1. Check your devices Android OS version by going to Settings>About Phone>Android Version

    查看你的设备Android操作系统版本,通过设置>关于手机>的安卓版本。

  2. Make sure you have the correct API installed in Android Studio in the SDK Manager

    确保在SDK管理器中安装了Android Studio中正确的API。

#12


7  

Also try uncheck "Tools" - "Android" - "Enable ADB Integration".

还可以尝试取消“工具”——“Android”——“启用ADB集成”。

This is work for me after update Windows to 10.

这是我在更新Windows到10之后的工作。

#13


7  

I have found that what works for me is:

我发现对我有用的是:

  • CD to your sdk platform-tools folder

    CD到您的sdk平台工具文件夹。

  • Check if adb sees your device

    检查adb是否看到了您的设备。

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

    如果显示“附件清单”和以下空白行,则重新启动adb:

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

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

    然后重新运行。/adb设备,看看它是否能拿起设备,如:

    List of devices attached
    015d2bc285601c0a device

    设备清单015d2bc285601c0a设备。

#14


7  

Try the following solutions (for Windows):

尝试以下解决方案(适用于Windows):

  • Go to your sdk tool installation path, and under \sdk\platform-tools folder and run this command:

    到您的sdk工具安装路径,在\sdk\platform-tools文件夹下运行以下命令:

    adb devices

    亚洲开发银行设备

If your device it listed it should show something like this:

如果你的设备列出它应该显示如下内容:

C:\android\sdk\platform-tools>adb devices
List of devices attached
081e96500591f039        device

If not, follow this:

如果不是,遵循:

  • Try these commands:

    试试这些命令:

    adb kill-server

    亚行kill-server

    adb start-server

    亚洲开发银行启动服务器

  • Make sure your phone has Developer Options in Settings (if not, go to Settings, About phone (or device), click on Android Version multiple times until you see a message).

    确保你的手机在设置中有开发者选项(如果不是,去设置,关于手机(或设备),点击安卓版本多次,直到你看到一个信息)。

  • Make sure USB debugging on your phone is enabled (go to Developer Options in Settings and turn it on)

    确保你的手机上的USB调试是启用的(在设置中打开开发者选项,打开它)

  • Make sure you have Select USB Configuration set to MTP (this is also in Developer Options).

    确保您已经选择了MTP的USB配置(这也是开发人员的选项)。

  • Make sure you can see your files in your device in Windows Explorer when you connect via USB.

    当你通过USB连接时,确保你能在Windows资源管理器中看到你的设备中的文件。

  • Make sure you have the driver for your device properly installed (most of the time, this happens when you first plug in your USB cable).

    确保你的设备安装了正确的驱动程序(大多数情况下,当你第一次插入USB数据线时)。

  • In Windows, right click on Computer, and go to Device Manager, check if you have Android Device right on the root folder and under it should be Android Composite ADB Interface. If you don't have this, you have to download the Google USB Driver. Get it here:

    在Windows中,右键单击计算机,然后到设备管理器,检查在根文件夹上是否有Android设备,在它下面应该是Android组合ADB接口。如果你没有这个,你必须下载谷歌的USB驱动程序。在这里:

http://developer.android.com/sdk/win-usb.html

http://developer.android.com/sdk/win-usb.html

  • In Device Manager, find your device (should have yellow Exclamation point), right click, and update driver (open the folder with the driver you just downloaded)

    在设备管理器中,找到您的设备(应该有黄色感叹号),右键单击,并更新驱动程序(打开您刚刚下载的驱动程序的文件夹)

  • If this doesn't work, try restarting Android Studio or plugging your device back in again.

    如果这个方法不起作用,可以尝试重新启动Android Studio,或者把你的设备重新插回去。

Some cheap devices (some $30 tablets) don't provide the USB drivers to connect in Device Manager, so in this case you are out of luck.

一些便宜的设备(大约30美元)不提供USB驱动器连接设备管理器,所以在这种情况下你是不走运。

#15


6  

If your phone was working previously

Before you do anything complicated, this might be a simple problem. Just unplug and plug back in.

在你做任何复杂的事情之前,这可能是一个简单的问题。只要拔掉插头就可以了。

If there are additional issues

You also might want to check that your configuration is set up to launch to your phone.

您还可能需要检查您的配置是否设置为启动到您的手机。

run --> edit configurations

运行- - >编辑配置

Android Studio看不到设备。

And make sure that you either default to the USB device or the chooser dialog if you are going to be switching between devices on your emulator as well.

如果你要在模拟器上的设备之间切换的话,请确保你是默认的USB设备或选择器对话框。

Android Studio看不到设备。

#16


4  

The AVD Manager is for emulator images. It never shows hardware. This is true for any usage of the AVD Manager: Eclipse, Android Studio, etc.

AVD管理器是用于仿真器映像的。它从不显示硬件。这适用于AVD管理器的任何用法:Eclipse、Android Studio等。

#17


3  

Try changing mode of usb connection to midi devices. Thats what worked for me.

尝试改变usb连接到midi设备的模式。这就是我的工作。

#18


2  

If you still have this problem (later than summer 2015) maybe you should:

如果你还有这个问题(迟于2015年夏天),也许你应该:

  1. Go here: http://developer.android.com/sdk/win-usb.html#top
  2. 去这里:http://developer.android.com/sdk/win-usb.html
  3. Download the driver
  4. 下载驱动程序
  5. Reinstall it
  6. 重新安装它

I recently installed Windows 10 (not an upgrade, a clean installation) and I forgot the ADB USB driver

我最近安装了Windows 10(不是升级,一个干净的安装),我忘记了ADB USB驱动程序。

#19


2  

Android Studio看不到设备。

Android Studio看不到设备。

After u turn on debug mode open settings/Developer options Update config same image

当你打开调试模式打开设置/开发者选项更新配置相同的图像。

#20


1  

Check device driver if your device is Galaxy install Kise will search your driver

检查设备驱动如果你的设备是银河安装Kise将搜索你的司机。

#21


1  

As driver was unable to load, I was unable to connect to my device on windows 7. I followed the steps below:

由于驱动程序无法加载,我无法连接到windows 7上的设备。我按照下面的步骤:

  1. Download Android USB driver from Intel site
  2. 从英特尔网站下载Android USB驱动程序。
  3. Install the driver and reboot your system
  4. 安装驱动程序并重新启动系统。
  5. Connect your device and it worked
  6. 把你的设备连接起来就可以了。

#22


1  

I have been troubleshotting same problem. I have tried all the tips in this topic in posts above me.

我一直在解决同样的问题。我已经在上面的帖子里试过了这个话题的所有提示。

My situation was: - computer have seen my tablet - had debug usb options in developer mode on - adb in sdk was not seeing my device, killing & start didnt help

我的情况是:-电脑已经看到我的平板电脑-在开发模式中调试usb选项- adb在sdk中没有看到我的设备,杀和开始没有帮助。

The problem was I had Samsung Galaxy drivers on my win8. When I went to devices manager, there was Lenovo A7600 Tablet with yellow marking. Settings -> actualize drivers -> choose from existing ones and i hooked up the Samsung drivers to this one.

问题是我的win8上有三星Galaxy的驱动程序。当我去设备经理的时候,联想的A7600平板电脑上有黄色的标记。设置->实现驱动->从现有的选择,我把三星的驱动连接到这个。

It worked like charm.

工作就像魅力。

#23


1  

The idea is to fix USB driver on your computer. Start -> Device Manger -> Other devices. Right click on the USB device then Update Driver Software -> Browse my Computer ..-> Let me pick... -> Android device -> Next.

想法是在你的电脑上安装USB驱动程序。启动->设备Manger ->其他设备。右键点击USB设备,然后更新驱动软件->浏览我的电脑。- >让我选择…->安卓设备-> Next。

#24


1  

None of above answers solved my problem until I updated SDK platform-tools.This maybe one of the causes of this issue.

以上的答案都没有解决我的问题,直到我更新了SDK平台工具。这可能是造成这个问题的原因之一。

#25


0  

Do the following steps to solve above issue.

采取以下步骤来解决上述问题。

  1. Right click on Project
  2. 右键单击项目
  3. select "Create Run Configurations"
  4. 选择“创建运行配置”
  5. All tests. (second option)
  6. 所有的测试。(第二个选项)
  7. in General Tab --> Target device
  8. 一般标签——>目标设备。

#26


0  

In my case, and I know this is dumb, but here's what I had to do.

在我的例子中,我知道这是愚蠢的,但这是我必须做的。

I had tried all the solutions above and none worked. A good key to t-shooting is when adb devices won't list the device, then you know you aren't cooking with gas yet.

我已经试过了以上所有的方法,但没有一个奏效。一个好的关键是当adb设备不列出设备时,你就知道你还没有使用天然气。

Switching between USB modes won't have an effect until the device registers as a device over adb. You'll know when that happens because you'll get a prompt about an RSA key.

在设备注册为adb设备之前,在USB模式之间切换不会有任何效果。您将知道何时发生,因为您将得到一个关于RSA密钥的提示。

It was a relatively new install of Windows 7. Under USB in my phone's notification area, I switched to Install Driver and let it install my adb driver. In my case I was never going to get anything legit over the internet.

这是一个相对较新的安装Windows 7。在我手机通知区的USB接口下,我切换到安装驱动程序,让它安装我的adb驱动程序。在我的情况下,我永远不会在互联网上得到任何合法的东西。

Once I saw that successfully install, I switched to PTP and it all just worked.

一旦我看到成功安装,我就切换到PTP,这一切都成功了。

#27


0  

Android Studio did not show my device (Samsung Galaxy Alpha) on Windows too until I downloaded and installed a Windows driver from Samsung Support page. I had to use the MTP connection mode on the device. I also confirmed authorizing the computer after I connected the device to it for the first time.

Android Studio在Windows上也没有显示我的设备(三星Galaxy Alpha),直到我下载并安装了一个来自三星支持页面的Windows驱动程序。我必须在设备上使用MTP连接模式。我第一次把设备连接到电脑上后,我也确认了电脑的授权。

#28


0  

  1. Got to: http://www.skipsoft.net/?wpdmpro=unified-android-toolkit-v1-4-0

    要:http://www.skipsoft.net/?wpdmpro=unified-android-toolkit-v1-4-0

  2. Click on: Download Unified Android Toolkit

    点击:下载统一的Android工具包。

  3. Install drivers for your devices, you're ready to go

    为你的设备安装驱动程序,你已经准备好了。

#29


0  

I also had this problem. After looking though my edge 6 the enable usb debugging was greyed out and unable to be turned on. Quick google search showed it was the myKnox security program that was stopping this from being used. all you need to do is uninstall myKnox and you can then allow usb debugging. This solved my problem with the choose device dialog now showing my connected phone.

我也有这个问题。在查看了我的edge 6后,启用了usb调试功能,并不能打开。快速的谷歌搜索显示它是myKnox安全程序阻止它被使用。您所需要做的就是卸载myKnox,然后您就可以允许usb调试了。这解决了我的问题,选择设备对话框现在显示我的连接电话。

#30


0  

I have faced same problem in windows 8 and found the solution.

我在windows 8中遇到了同样的问题,找到了解决方案。

1) Right click on My Computer.
2) Click on manager.
3) Go to Device Manager.
4) Right click on device name (Which below on Other devices).
5) Click on Update Driver.
6) Click on next.
7) Click on Let me know... label.

右击我的电脑。2)点击经理。3)到设备管理器。4)右键点击设备名称(在其他设备上)。5)点击更新驱动程序。6)点击下一步。7)点击让我知道……标签。

Driver will be installed automatically.

司机将自动安装。

Its works fine for me.

它对我来说没问题。

#1


148  

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

要更改在Android Studio中单击run或debug时的应用程序默认设置,请遵循以下步骤:

1. go to Run

1。去运行

2. Click on Edit Configurations

2。点击编辑配置

3. Select the project

3所示。选择项目

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

4所示。在Android应用程序页面的General选项卡下找到目标设备部分。

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.

这似乎是您切换项目构建的地方。如果您正在导入一个项目,它实际上默认为模拟器,不知道为什么。

#2


243  

I recently had trouble with this, and regardless of what I did(restart adb, edit adb_usb.ini, restart computer+device+swap usb port, reinstall studio etc. etc.) I just couldnt get it to work, and could not even detect my device using 'adb devices'. Finally after about 2 hours of googling and testing, someone suggested switching to PTP instead of MTP on my device. When I did this I got a popup on my device asking me to allow my mac access and suddenly everything worked(had to restart studio for it to show up there as well though).

我最近在这方面遇到了麻烦,不管我做了什么(重启adb,编辑adb_usb)。ini,重启电脑+设备+交换usb接口,重新安装studio等)我无法让它工作,甚至不能使用“adb设备”检测我的设备。最后,在google和测试两小时后,有人建议改用PTP,而不是MTP。当我这样做的时候,我的设备上有一个弹出窗口,请求我允许mac访问,然后突然所有的东西都工作了(不得不重新启动studio,以便它也能显示在那里)。

I might be bumping this thread now, but it is the first result on google search, and I had a lot of trouble finding an answer for this problem, so I thought this should be added as a solution.

我现在可能会碰到这个线程,但是它是谷歌搜索的第一个结果,我在找到这个问题的答案时遇到了很多麻烦,所以我认为这应该作为一个解决方案来添加。

#3


187  

On your device:

在你的设备:

Go to settings/ developer settings/ allow USB debug mode

进入设置/开发者设置/允许USB调试模式。

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

如果“允许USB调试模式”选项被禁用。然后你可能会有设备连接到你的电脑。断开设备,该选项现在可用。

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.

注意:在Android 4.2和更新版本中,默认情况下隐藏了开发者选项。要使它可用,可以到设置>的电话和tap构建7次。返回到前面的屏幕,以找到开发人员选项。

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

如果它仍然没有帮助,你可以用这个表达式谷歌:

How to enable developer options on YOUR_PHONE_TYPE

如何在您的_phone_type上启用开发人员选项?

#4


49  

Some cables can not been used for developer mode or transfer file. A solution would be change your cable and don't waste time.

有些电缆不能用于开发模式或传输文件。一个解决方案是改变你的有线电视,不要浪费时间。

Trendblog post

Trendblog帖子

#5


38  

I had to killall adb because somehow, Android Studio managed to crash and did not want to communicate with adb anymore. Thus, my device did not show up.

我不得不杀掉所有的adb,因为Android Studio设法崩溃了,不想再和adb沟通了。因此,我的设备没有出现。

So quitting Android Studio, terminating all adb instances in Terminal and starting Android Studio again (should ask if it should enable debugging then) worked.

因此,退出Android Studio,在终端上终止所有adb实例,重新启动Android Studio(应该询问是否应该启用调试)。

#6


37  

It works for me by following steps below:-

它对我的工作如下:-。

If you using Windows, the device won't show up because of driver issue.

如果你使用Windows,这个设备不会因为驱动程序问题出现。

Go to device manager (just search it using Start) and look for any devices showing an error. Many androids will show as an unknown USB device and comes with exclamation mark. Select that device and try to update the drivers for it. for update part follow the link:universal adb

到设备管理器(只需要使用Start搜索它),并寻找任何显示错误的设备。许多机器人将作为一个未知的USB设备显示,并带有感叹号。选择该设备并尝试更新驱动程序。更新部分按链接:环球亚行。

But before that, you have to update your sdk manager and make sure Google USB Driver package is installed.

但在此之前,您必须更新您的sdk管理器,并确保安装了谷歌USB驱动程序包。

When done, the driver files are downloaded into the \extras\google\usb_driver\ directory. Hints: Search "android_winusb.inf" under Windows Start and Open File Location to get the directory mentioned.

当完成时,驱动程序文件被下载到\备用\谷歌\usb_driver\目录。提示:搜索“android_winusb。inf“在Windows启动和打开文件位置,以获取所提到的目录。

Open up your device manager, navigate to your android device, right click on it and select Update Driver Software then select Browse driver software. Follow the file location path previously to install Google USB Driver.

打开您的设备管理器,导航到您的android设备,右键单击它并选择Update Driver软件,然后选择Browse Driver软件。按照前面的文件位置路径安装谷歌USB驱动程序。

Restart Android Studio and Developer Options in your android device and reconnect USB.

在Android设备上重新启动Android Studio和Developer选项,并重新连接USB。

Cheers !

干杯!

#7


25  

My Nexus 5 phone did not have developer options in the settings menu. I had to do the following:

我的Nexus 5手机在设置菜单中没有开发人员选项。我不得不这样做:

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.

在Android 4.2和更新版本中,默认情况下隐藏了开发者选项。要使它可用,可以到设置>的电话和tap构建7次。返回到前面的屏幕,以找到开发人员选项。

#8


19  

After spending some time I found the problem was to enable USB debugging option to on. Just find in your mobile Settings->Developer Option->USB debugging. Just enable it and it works. It might help someone!

在花了一些时间之后,我发现问题是要启用USB调试选项。只要在你的移动设置中找到->开发者选项->USB调试。只要激活它就行了。它可能帮助别人!

Android Studio看不到设备。

#9


14  

In my case

在我的例子中

android studio suddenly stop seeing my device

安卓工作室突然停止看我的设备。

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

我通过将USB选项改为Media device (MTP)来修复它

how to get USB option from storage USB Computer Connection

如何从存储USB计算机连接获得USB选项?

Android Studio看不到设备。

check Debugging from developer options

从开发人员选项中检查调试。

try re-run on device , it should work

试着在设备上重新运行,它应该工作。

issue

问题

USB option was charge only

USB选项只收取费用。

UPDATE ANSWER 26/7/2016

更新答案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 )

有很多原因,比如不支持开发模式——> USB调试(如果你没有看到开发人员选项,在build number中点击7次)

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。

adb kill-server
adb start-server

or from ddms

或从ddms

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

在设备部分——>点击小箭头——>重启adb。

Android Studio看不到设备。

#10


13  

In my case the following steps helped to resolve the issue:

在我的案例中,以下步骤帮助解决了这个问题:

1) Ensure the package "Google USB Driver" is installed in Android SDK Manager

1)确保在Android SDK管理器中安装“谷歌USB驱动程序”。

2) Download "ADB Driver Installer 2.0" from here

2)从这里下载“ADB驱动程序安装2.0”。

3) Run the tool downloaded and connect your smartphone; in my case it showed that the driver had been installed incorrectly and suggested to fix it

3)运行工具下载并连接智能手机;在我的例子中,它显示司机安装错误并建议修理它。

After those steps my Android Studio instantly recognised the device! Both MTP and PTP started to work.

在这些步骤之后,我的Android工作室马上就认出了这个设备!MTP和PTP都开始工作。


Tested for Samsung (Android 4.1.2) and Xiaomi MI4W (Android 4.4.4)

测试三星(Android 4.1.2)和小米MI4W (Android 4.4.4)

#11


7  

Be sure that you have downloaded the correct API for the version you device is using. After updating your device's Android version or switching to a different device you may not have the correct API downloaded on Android Studio. To do this:

请确保您已经下载了您的设备正在使用的版本的正确的API。更新设备的Android版本或切换到不同的设备后,您可能没有在Android Studio上下载的正确的API。要做到这一点:

  1. Check your devices Android OS version by going to Settings>About Phone>Android Version

    查看你的设备Android操作系统版本,通过设置>关于手机>的安卓版本。

  2. Make sure you have the correct API installed in Android Studio in the SDK Manager

    确保在SDK管理器中安装了Android Studio中正确的API。

#12


7  

Also try uncheck "Tools" - "Android" - "Enable ADB Integration".

还可以尝试取消“工具”——“Android”——“启用ADB集成”。

This is work for me after update Windows to 10.

这是我在更新Windows到10之后的工作。

#13


7  

I have found that what works for me is:

我发现对我有用的是:

  • CD to your sdk platform-tools folder

    CD到您的sdk平台工具文件夹。

  • Check if adb sees your device

    检查adb是否看到了您的设备。

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

    如果显示“附件清单”和以下空白行,则重新启动adb:

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

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

    然后重新运行。/adb设备,看看它是否能拿起设备,如:

    List of devices attached
    015d2bc285601c0a device

    设备清单015d2bc285601c0a设备。

#14


7  

Try the following solutions (for Windows):

尝试以下解决方案(适用于Windows):

  • Go to your sdk tool installation path, and under \sdk\platform-tools folder and run this command:

    到您的sdk工具安装路径,在\sdk\platform-tools文件夹下运行以下命令:

    adb devices

    亚洲开发银行设备

If your device it listed it should show something like this:

如果你的设备列出它应该显示如下内容:

C:\android\sdk\platform-tools>adb devices
List of devices attached
081e96500591f039        device

If not, follow this:

如果不是,遵循:

  • Try these commands:

    试试这些命令:

    adb kill-server

    亚行kill-server

    adb start-server

    亚洲开发银行启动服务器

  • Make sure your phone has Developer Options in Settings (if not, go to Settings, About phone (or device), click on Android Version multiple times until you see a message).

    确保你的手机在设置中有开发者选项(如果不是,去设置,关于手机(或设备),点击安卓版本多次,直到你看到一个信息)。

  • Make sure USB debugging on your phone is enabled (go to Developer Options in Settings and turn it on)

    确保你的手机上的USB调试是启用的(在设置中打开开发者选项,打开它)

  • Make sure you have Select USB Configuration set to MTP (this is also in Developer Options).

    确保您已经选择了MTP的USB配置(这也是开发人员的选项)。

  • Make sure you can see your files in your device in Windows Explorer when you connect via USB.

    当你通过USB连接时,确保你能在Windows资源管理器中看到你的设备中的文件。

  • Make sure you have the driver for your device properly installed (most of the time, this happens when you first plug in your USB cable).

    确保你的设备安装了正确的驱动程序(大多数情况下,当你第一次插入USB数据线时)。

  • In Windows, right click on Computer, and go to Device Manager, check if you have Android Device right on the root folder and under it should be Android Composite ADB Interface. If you don't have this, you have to download the Google USB Driver. Get it here:

    在Windows中,右键单击计算机,然后到设备管理器,检查在根文件夹上是否有Android设备,在它下面应该是Android组合ADB接口。如果你没有这个,你必须下载谷歌的USB驱动程序。在这里:

http://developer.android.com/sdk/win-usb.html

http://developer.android.com/sdk/win-usb.html

  • In Device Manager, find your device (should have yellow Exclamation point), right click, and update driver (open the folder with the driver you just downloaded)

    在设备管理器中,找到您的设备(应该有黄色感叹号),右键单击,并更新驱动程序(打开您刚刚下载的驱动程序的文件夹)

  • If this doesn't work, try restarting Android Studio or plugging your device back in again.

    如果这个方法不起作用,可以尝试重新启动Android Studio,或者把你的设备重新插回去。

Some cheap devices (some $30 tablets) don't provide the USB drivers to connect in Device Manager, so in this case you are out of luck.

一些便宜的设备(大约30美元)不提供USB驱动器连接设备管理器,所以在这种情况下你是不走运。

#15


6  

If your phone was working previously

Before you do anything complicated, this might be a simple problem. Just unplug and plug back in.

在你做任何复杂的事情之前,这可能是一个简单的问题。只要拔掉插头就可以了。

If there are additional issues

You also might want to check that your configuration is set up to launch to your phone.

您还可能需要检查您的配置是否设置为启动到您的手机。

run --> edit configurations

运行- - >编辑配置

Android Studio看不到设备。

And make sure that you either default to the USB device or the chooser dialog if you are going to be switching between devices on your emulator as well.

如果你要在模拟器上的设备之间切换的话,请确保你是默认的USB设备或选择器对话框。

Android Studio看不到设备。

#16


4  

The AVD Manager is for emulator images. It never shows hardware. This is true for any usage of the AVD Manager: Eclipse, Android Studio, etc.

AVD管理器是用于仿真器映像的。它从不显示硬件。这适用于AVD管理器的任何用法:Eclipse、Android Studio等。

#17


3  

Try changing mode of usb connection to midi devices. Thats what worked for me.

尝试改变usb连接到midi设备的模式。这就是我的工作。

#18


2  

If you still have this problem (later than summer 2015) maybe you should:

如果你还有这个问题(迟于2015年夏天),也许你应该:

  1. Go here: http://developer.android.com/sdk/win-usb.html#top
  2. 去这里:http://developer.android.com/sdk/win-usb.html
  3. Download the driver
  4. 下载驱动程序
  5. Reinstall it
  6. 重新安装它

I recently installed Windows 10 (not an upgrade, a clean installation) and I forgot the ADB USB driver

我最近安装了Windows 10(不是升级,一个干净的安装),我忘记了ADB USB驱动程序。

#19


2  

Android Studio看不到设备。

Android Studio看不到设备。

After u turn on debug mode open settings/Developer options Update config same image

当你打开调试模式打开设置/开发者选项更新配置相同的图像。

#20


1  

Check device driver if your device is Galaxy install Kise will search your driver

检查设备驱动如果你的设备是银河安装Kise将搜索你的司机。

#21


1  

As driver was unable to load, I was unable to connect to my device on windows 7. I followed the steps below:

由于驱动程序无法加载,我无法连接到windows 7上的设备。我按照下面的步骤:

  1. Download Android USB driver from Intel site
  2. 从英特尔网站下载Android USB驱动程序。
  3. Install the driver and reboot your system
  4. 安装驱动程序并重新启动系统。
  5. Connect your device and it worked
  6. 把你的设备连接起来就可以了。

#22


1  

I have been troubleshotting same problem. I have tried all the tips in this topic in posts above me.

我一直在解决同样的问题。我已经在上面的帖子里试过了这个话题的所有提示。

My situation was: - computer have seen my tablet - had debug usb options in developer mode on - adb in sdk was not seeing my device, killing & start didnt help

我的情况是:-电脑已经看到我的平板电脑-在开发模式中调试usb选项- adb在sdk中没有看到我的设备,杀和开始没有帮助。

The problem was I had Samsung Galaxy drivers on my win8. When I went to devices manager, there was Lenovo A7600 Tablet with yellow marking. Settings -> actualize drivers -> choose from existing ones and i hooked up the Samsung drivers to this one.

问题是我的win8上有三星Galaxy的驱动程序。当我去设备经理的时候,联想的A7600平板电脑上有黄色的标记。设置->实现驱动->从现有的选择,我把三星的驱动连接到这个。

It worked like charm.

工作就像魅力。

#23


1  

The idea is to fix USB driver on your computer. Start -> Device Manger -> Other devices. Right click on the USB device then Update Driver Software -> Browse my Computer ..-> Let me pick... -> Android device -> Next.

想法是在你的电脑上安装USB驱动程序。启动->设备Manger ->其他设备。右键点击USB设备,然后更新驱动软件->浏览我的电脑。- >让我选择…->安卓设备-> Next。

#24


1  

None of above answers solved my problem until I updated SDK platform-tools.This maybe one of the causes of this issue.

以上的答案都没有解决我的问题,直到我更新了SDK平台工具。这可能是造成这个问题的原因之一。

#25


0  

Do the following steps to solve above issue.

采取以下步骤来解决上述问题。

  1. Right click on Project
  2. 右键单击项目
  3. select "Create Run Configurations"
  4. 选择“创建运行配置”
  5. All tests. (second option)
  6. 所有的测试。(第二个选项)
  7. in General Tab --> Target device
  8. 一般标签——>目标设备。

#26


0  

In my case, and I know this is dumb, but here's what I had to do.

在我的例子中,我知道这是愚蠢的,但这是我必须做的。

I had tried all the solutions above and none worked. A good key to t-shooting is when adb devices won't list the device, then you know you aren't cooking with gas yet.

我已经试过了以上所有的方法,但没有一个奏效。一个好的关键是当adb设备不列出设备时,你就知道你还没有使用天然气。

Switching between USB modes won't have an effect until the device registers as a device over adb. You'll know when that happens because you'll get a prompt about an RSA key.

在设备注册为adb设备之前,在USB模式之间切换不会有任何效果。您将知道何时发生,因为您将得到一个关于RSA密钥的提示。

It was a relatively new install of Windows 7. Under USB in my phone's notification area, I switched to Install Driver and let it install my adb driver. In my case I was never going to get anything legit over the internet.

这是一个相对较新的安装Windows 7。在我手机通知区的USB接口下,我切换到安装驱动程序,让它安装我的adb驱动程序。在我的情况下,我永远不会在互联网上得到任何合法的东西。

Once I saw that successfully install, I switched to PTP and it all just worked.

一旦我看到成功安装,我就切换到PTP,这一切都成功了。

#27


0  

Android Studio did not show my device (Samsung Galaxy Alpha) on Windows too until I downloaded and installed a Windows driver from Samsung Support page. I had to use the MTP connection mode on the device. I also confirmed authorizing the computer after I connected the device to it for the first time.

Android Studio在Windows上也没有显示我的设备(三星Galaxy Alpha),直到我下载并安装了一个来自三星支持页面的Windows驱动程序。我必须在设备上使用MTP连接模式。我第一次把设备连接到电脑上后,我也确认了电脑的授权。

#28


0  

  1. Got to: http://www.skipsoft.net/?wpdmpro=unified-android-toolkit-v1-4-0

    要:http://www.skipsoft.net/?wpdmpro=unified-android-toolkit-v1-4-0

  2. Click on: Download Unified Android Toolkit

    点击:下载统一的Android工具包。

  3. Install drivers for your devices, you're ready to go

    为你的设备安装驱动程序,你已经准备好了。

#29


0  

I also had this problem. After looking though my edge 6 the enable usb debugging was greyed out and unable to be turned on. Quick google search showed it was the myKnox security program that was stopping this from being used. all you need to do is uninstall myKnox and you can then allow usb debugging. This solved my problem with the choose device dialog now showing my connected phone.

我也有这个问题。在查看了我的edge 6后,启用了usb调试功能,并不能打开。快速的谷歌搜索显示它是myKnox安全程序阻止它被使用。您所需要做的就是卸载myKnox,然后您就可以允许usb调试了。这解决了我的问题,选择设备对话框现在显示我的连接电话。

#30


0  

I have faced same problem in windows 8 and found the solution.

我在windows 8中遇到了同样的问题,找到了解决方案。

1) Right click on My Computer.
2) Click on manager.
3) Go to Device Manager.
4) Right click on device name (Which below on Other devices).
5) Click on Update Driver.
6) Click on next.
7) Click on Let me know... label.

右击我的电脑。2)点击经理。3)到设备管理器。4)右键点击设备名称(在其他设备上)。5)点击更新驱动程序。6)点击下一步。7)点击让我知道……标签。

Driver will be installed automatically.

司机将自动安装。

Its works fine for me.

它对我来说没问题。