简体   繁体   English

Android Studio 找不到我的设备! (初始化亚行)

[英]Android Studio cannot find my device ! (Initializing ADB)

I'm struggling to connect my device(Galaxy S10) in Android Studio.我正在努力在 Android Studio 中连接我的设备(Galaxy S10)。

I used several methods to solve this problem, but it didn't work.我使用了几种方法来解决这个问题,但没有奏效。

[Methods that I tried] [我尝试过的方法]
- Delete all android studio files and re-install it. - 删除所有 android studio 文件并重新安装。 ( gradle, sdk, etc.... ) (gradle、sdk等......)
- Add the PATH ( C\users....\Android\Sdk\platform-tools ) - 添加路径( C\users....\Android\Sdk\platform-tools )
- Re-install the USB driver. - 重新安装 USB 驱动程序。
- Reset the adb using cmd. - 使用 cmd 重置 adb。 ( adb kill-server, adb start-server ) ( adb kill-server, adb start-server )

As you can see in the picture.正如你在图片中看到的那样。

The connection assistant in Android Studio can find the Galax S10, but I cannot connect. Android Studio中的连接助手可以找到Galax S10,但是无法连接。

Please help me to solve this problem.请帮我解决这个问题。

截屏

This issue not created by android studio or gradle file .此问题不是由android 工作室gradle 文件创建的。 Actually this issue is caused by adb drivers .Let install adb drives manually in your device.实际上这个问题是由adb 驱动程序引起的。让我们在您的设备中手动安装 adb 驱动器。 then check connect mobile with android studio.然后检查将手机与 android studio 连接。

try installing adb driver from samsung's website Link尝试从三星的网站链接安装 adb 驱动程序

Please check the following things to remember for connecting your phone.请检查以下事项以记住连接手机。

  1. Always install the driver from a trusted source.始终从受信任的来源安装驱动程序。
  2. Developer mode should be activated and USB debugging mode also enables.开发者模式应该被激活并且 USB 调试模式也被启用。
  3. Please make sure some devices require to set USB settings to file transfer mode.请确保某些设备需要将 USB 设置设置为文件传输模式。
  4. In some rare cases after connecting the device we have to restart the ADB.在极少数情况下,连接设备后,我们必须重新启动 ADB。

    Step to restart ADB in Window: Window中的ADB重启步骤:

    Go to the task manager and search for ADB and end that task. Go 到任务管理器并搜索 ADB 并结束该任务。

    Step to restart ADB in Ubuntu:在 Ubuntu 中重启 ADB 的步骤:

    Go to the System Monitor and search for ADB and kill that task. Go 到系统监视器并搜索 ADB 并终止该任务。

Now go to Android Studio and try to select devices from the device list panel.现在 go 到 Android Studio 并尝试从设备列表面板到 select 设备。 And hopefully, you will be able to see your connected device.希望您能够看到您连接的设备。

NOTE: Connect the device to USB file transfer before kill the ADB and do not disconnect your device after killing ADB注意:在杀死 ADB 之前将设备连接到 USB 文件传输,并且在杀死 ADB 后不要断开设备

There are many reasons why Android Studio doesn't see mobile phones. Android Studio 看不到手机的原因有很多。

One of them is a problem with the ADB Interface driver .其中之一是ADB 接口驱动程序的问题。 You can check it in your Device Manager:您可以在设备管理器中查看:

亚行接口

To solve this issue, follow these steps:要解决此问题,请执行以下步骤:

  1. Connect your mobile phone with the PC using the cable and Enabled the Developer Option and USB Debugging , which you normally do使用数据线将您的手机与 PC 连接并启用开发人员选项USB 调试,您通常会这样做

  2. Download this Android SDK下载此Android SDK

  3. Unzip the Zip file and go to the android-sdk-windows folder -> Run SDK Manager.exe with admin privileges将 Zip 文件和 go 解压缩到 android-sdk-windows 文件夹 -> 以管理员权限运行SDK Manager.exe

Android SDK 管理器

  1. Search for Google USB Driver , Put a checkmark on it and click on Install packages... button搜索Google USB Driver ,勾选它并点击 Install packages... 按钮

( Now the driver is downloaded but it won't install automatically. We will do it manually in the next steps. ) (现在驱动已下载,但不会自动安装。我们将在接下来的步骤中手动安装。)

  1. Open the Device Manager (Right-click on the Start menu -> Device Manager)打开设备管理器(右键单击开始菜单 -> 设备管理器)

  2. In the Device Manager locate your Android device.在设备管理器中找到您的 Android 设备。 Then right-click on it and select "Update Driver Software".然后右键单击它和 select“更新驱动程序软件”。

  3. Select "Browse my computer for driver software". Select “浏览我的计算机以获取驱动程序软件”。

  4. Select "Let me pick from a list of device drivers on my computer". Select “让我从计算机上的设备驱动程序列表中选择”。

  5. Select "Show All Devices" and click on the Next button Select“显示所有设备”并点击下一步按钮

  6. Press the "Have Disk" button.按“从磁盘安装”按钮。

  7. Enter the path to the Google USB driver.输入 Google USB 驱动程序的路径。 ( To know where your Google USB Driver downloaded, just hover your mouse on it you will find the path/location ) [See the below image] (要知道您的 Google USB 驱动程序在哪里下载,只需将鼠标放在 hover 上即可找到路径/位置)[见下图]

路径

  1. Select "Android ADB Interface" from the list of device types.设备类型列表中的 Select “Android ADB 接口”。

  2. Confirm the installation of the driver by pressing "Yes".按“是”确认驱动程序的安装。

  3. Confirm the installation again by pressing "Install".按“安装”再次确认安装。

  4. When the installation is done, press "Close".安装完成后,按“关闭”。

Now, your Android device will be picked up by the Android Studio:)现在,Android Studio 将拾取您的 Android 设备:)

For me it was the matter of a wrong USB cable:/对我来说,这是一条错误的 USB 电缆的问题:/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 adb无法找到我的设备进行Android调试。 为什么? - adb cannot find my device for Android debugging. Why? 找不到设备android studio | ADB 显示设备但 Studio 不能 - Cannot find device android studio | ADB Shows Device But Studio Can't OnePlus 2-无法让ADB与我的设备一起使用(找不到设备) - OnePlus 2 - cannot get adb to work with my device (cannot find device) 我的 android studio 1.1.0 似乎找不到我的 USB 设备 - My android studio 1.1.0 cannot seem to find my usb device Android Studio 找不到 ADB,但我可以部署到我的设备 - Android Studio is unable to find ADB, yet I'm able to deploy to my device Android Studio找不到设备 - Android Studio cannot find device Android Studio在我的Mac上找不到三星设备,但可在PC上使用 - Android Studio cannot find Samsung device on my Mac but works in PC 运行我的程序时,Android Studio无法找到设备 - Android studio cannot find device when I run my program 'adb devices' 找到我的 usb 设备,但 android 工作室没有。 只显示“加载设备”,运行时也说“没有找到目标设备” - 'adb devices' find my usb device,but android studio not. only show "Loading Devices", also say when run "no target device found" Android Studio 冻结在“正在初始化 ADB...” - Android Studio freezes on "Initializing ADB..."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM