在 Android Studio Bumblebee 中无法通过 Wi-Fi 配对新设备

发布于 2025-01-11 16:39:22 字数 255 浏览 0 评论 0原文

当我尝试配对设备时,二维码或配对码都不起作用,只是在搜索设备时陷入困境...

我的手机运行 Android 11 和 Android 11 12 并且 Wi-Fi 调试已打开。

Android Studio " “配对设备”对话框

when I try to pair a device, neither QR code or Pairing code work and just get stuck searching for a device...

I have a phone with Android 11 & 12 and Wi-Fi debugging is on.

Android Studio "Pair devices" dialog

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(17

过去的过去 2025-01-18 16:39:22

我也面临着同样的问题。它在几周内工作正常,但从那以后我无法再通过二维码或配对码连接到我的手机。

对我有用的是通过终端连接。

adb connect [phone_ip]:[port]

IP和端口的详细信息可以在“设置>”中查看。系统>开发者选项>无线调试(正在调试)>启用它&您应该可以在此处看到“IP 地址和端口”。

I'm also facing the same issue. It was working fine for a couple of weeks but since then I'm no longer able to connect to my phone via QR Code or pairing code.

What's working for me is connecting via terminal.

adb connect [phone_ip]:[port]

The details for IP and port can be viewed at Settings > System > Developer Options > Wireless debugging (Under Debugging) > Enable it & you should be able to see "IP address & Port" here.

此刻的回忆 2025-01-18 16:39:22

Android Studio 提供了一个选项来解决设备连接问题。我遇到了同样的问题,然后我发现了这种方式。

输入图像描述这里

我发现在我的情况下我需要重新启动ADB,你的可能会有所不同。

Android Studio gives an option to troubleshoot device connection. I was having the same issue then I found this way.

enter image description here

I found in my case I need to restart the ADB, your might be different.

最近可好 2025-01-18 16:39:22

我更喜欢 ADB wifi 作为 wifi adb 连接。
但为此你必须处于同一个 wifi 网络中。

您可以在右侧面板上找到它,如下所示

在此处输入图像描述

现在,第一次您必须通过 USB 电缆连接它,之后
点击连接
单击连接

就是这样。您现在已经无线连接,可以拔掉电缆了。

I prefer ADB wifi for wifi adb connection.
But for this you must be in same wifi network.

enter image description here

after install this plugin you find it on right side panel as shown below

enter image description here

Now , First time you have to connect it via usb cable and after that
Click on connect
Click on connect

And That's It. You are connected wirelessly now you can remove cable.

零時差 2025-01-18 16:39:22

对我来说,我的问题是在我的工作站 (Windows 11) 上,我的网络配置文件类型位于 Network & 下。互联网>无线网络> {连接的 Wi-Fi 名称} 已设置为公共网络(推荐)。将其更改为专用网络使其能够发现连接在同一网络上的我的 Android 设备。

For me, my issue was that on my workstation (Windows 11), my Network profile type under Network & internet > Wi-Fi > {Connected Wi-Fi name} was set to Public Network (Recommeded). Changing this to Private network allowed it to discover my Android device connected on the same network.

总以为 2025-01-18 16:39:22

对我的情况有帮助的是“工具”->“ SDK Manager 并在 SDK Platforms 选项卡上选择我手机的 Android 版本。默认情况下仅安装了“Android API 33”。添加“Android 11.0 (R)”并重新启动 Studio 后,我就可以使用二维码连接我的手机。

SDK 平台

What helped in my case was going to Tools -> SDK Manager and on the SDK Platforms tab choosing the Androivd version of my phone. By default in only had "Android API 33" installed. Once I added "Android 11.0 (R)" and restarted the Studio I was able to connect my phone using the QR Code.

SDK Platforms

随遇而安 2025-01-18 16:39:22

我的问题只需重新启动 Android Studio 即可修复。

我的猜测有时是使用不同的 VPN,也许 Android Studio 团队没有预测到代理。

Mine was fixed by simply restarting Android Studio.

My speculations are sometimes using different VPNs and maybe proxies aren't predicted by Android Studio team.

Hello爱情风 2025-01-18 16:39:22

就我而言:同时重新启动我的电脑和手机,然后就可以通过 WiFi 连接。

有时上述方法不起作用。如果它不起作用,那么我重新启动 Android Studio。

要重新启动 Android Studio:首先,单击“文件”,然后单击“使缓存无效...”,然后单击“无效并重新启动”按钮。

In my case: restarted my PC and phone together and was then able to connect via WiFi.

Sometimes the above-mentioned method doesn't work. if it doesn't work, then I restart Android Studio.

To restart Android Studio: first, click 'File' then click 'Invalidate Caches...' then click on the 'Invalidate and Restart' button.

葵雨 2025-01-18 16:39:22

重新启动设备对我有帮助

Restarting the device helped me

怪我入戏太深 2025-01-18 16:39:22

关闭/打开我的笔记本电脑和手机的 Wifi 对我来说很有效。

Turning off/on Wifi for both my laptop and phone worked for me.

も星光 2025-01-18 16:39:22

这是一个 Android Studio 错误,因为它无法可靠地工作。

确保您测试了这些步骤
Android 11 通过 WIFI 配对

确保您的

Ensure that your workstation and device are connected to the same wireless network.

Ensure that your device is running Android 11 or higher. For more informaton, see Check & update your Android version.

Ensure that you have Android Studio Bumblebee. 

On your workstation, update to the latest version of the SDK Platform-Tools.

对于第4点Sdk Manager> SDK工具> Android SDK 构建工具

同时您可以使用插件市场中名为 ADB WI FI 的插件。

它确实需要您插入电缆一次,但之后就不需要了。
您还可以将其与 scrcpy 配对,将屏幕投影到笔记本电脑上

This is an Android Studio Bug since it does not work reliably.

Make sure you tested these steps
Android 11 pairing over WIFI

Make sure your

Ensure that your workstation and device are connected to the same wireless network.

Ensure that your device is running Android 11 or higher. For more informaton, see Check & update your Android version.

Ensure that you have Android Studio Bumblebee. 

On your workstation, update to the latest version of the SDK Platform-Tools.

For the 4th point Sdk Manager> SDK Tools > Android SDK Build Tools

You can use a plugin called ADB WI FI from the plugin marketplace in the meantime.

It does require you to plug your cable once but doesn't require it after that .
Also you can pair it with scrcpy to project your screen on your laptop

烟雨扶苏 2025-01-18 16:39:22

终于解决了这个问题,对于这个问题有多种解决方案,因为不同的人可能有不同的根本原因。我将列出一个清单,列出成功配对设备所需的事项。

  1. 确保您的 Android 设备是 Android 11+
  2. Android Studio 版本必须是 Bumblebee 及以上
  3. 配置您的 Android SDK 并下载所需的 SDK 工具,例如 Android SDK Platform 工具(您可以通过 Tools->SDK Manager 来完成此操作)
  4. 正确配置您的 adb(结果 Android studio 无法识别我的 adb 工具 -> 设备连接故障排除
  5. 确保两个设备连接到同一网络。确保两台设备上的 IP 地址和 DNS 相同。

第 4 点和第 5 点对我来说是个问题,因为我的电脑使用 OpenDNS 和静态 IP 地址,而我的手机使用动态 IP 地址,该地址与我的电脑的 IP 地址不同。

Finally fixed the issue, for this problem there are multiple solutions as different people may have a different root cause to this issue. I'll just list a checklist on the things needed to pair a device successfully.

  1. Make sure your Android device is Android 11+
  2. Android Studio version must be Bumblebee and above
  3. Configure your Android SDK and download the required SDK tools eg.Android SDK Platform tools (You can do this through Tools->SDK Manager)
  4. Configure your adb correctly (Turns out my adb wasn't being recognised by Android studio Tools -> Troubleshoot Device Connection)
  5. Ensure both devices is connected to the same network. Make sure it is the same IP address and DNS on both devices.

No 4 and No 5 turns out to be the problem to me as my PC was using OpenDNS and a static IP address while my phone was using a dynamic IP address which was different from my PC's IP address.

灰色世界里的红玫瑰 2025-01-18 16:39:22

我遇到了同样的问题!我发现这个问题非常令人不安。

嗯,至少对我来说,mDNS 后端守护进程似乎没有启动。
默认情况下,在 Mac OSX 中,会选择 Bonjour 后端,如 官方文档

这可以通过在终端上执行 adb mdns check 进行验证。

对我有用的解决方案是为 mDNS 后端选择 Openscreen 后端。

这可以通过 Android Studio 设置来完成。转到设置>;构建、执行、部署>调试器> Android 调试桥 (adb)

现在,在设置 ADB 服务器 mDNS 后端 的列表中选择 Openscreen 选项。

输入图片此处描述

I ran into the same issue! I found the issue quite disturbing.

Well, it seems, for me at lease, like the mDNS backend daemon was not started.
By default in the Mac OSX the Bonjour backend is selected as mentioned in the official documentation.

This can be verified by executing adb mdns check on your terminal.

The solution that worked for me is to select the Openscreen backend for mDNS backend.

This can be done via the Android Studio settings. Go to Settings > Build, Execution, Deployment > Debugger > Android Debug Bridge (adb).

Now select Openscreen option on the list for the setting ADB server mDNS backend.

enter image description here

峩卟喜欢 2025-01-18 16:39:22

我遇到了同样的问题,尝试了上述所有答案,然后最终重新启动了我的路由器,它正在工作

I was facing the same isuue tried every above answers then finally restarted my router and it was working

成熟稳重的好男人 2025-01-18 16:39:22

我尝试过adb,但没有成功。对我有用的是:

  1. 在我的笔记本电脑上断开 wifi
  2. 在我的手机上,设置 ->连接->移动热点和网络共享 ->打开移动热点和蓝牙网络共享
  3. 将笔记本电脑连接到手机。
  4. 通过移动热点二维码配对

I tried adb, but it didn't work. What works for me is:

  1. Disconnect wifi on my laptop
  2. On my phone, Setting -> Connections -> Mobile Hotspot and Tethering -> Turn on Mobile Hotspot as well as bluetooth tethering
  3. Connect laptop to phone through mobile hotspot
  4. QR code pairing.
嘿咻 2025-01-18 16:39:22

检查 Wi-Fi 路由器上的时区,它应该匹配

check the timezone on your Wi-Fi router, it should match

梦幻的味道 2025-01-18 16:39:22

要解决此问题,您必须按照以下步骤操作。

  1. 转到工具->sdk管理器检查Android API 35
  2. 转到编辑环境变量并粘贴您的adb路径或平台工具路径
    3)完成该步骤后,您必须重新启动系统。
    我粘贴了 C:\Users\xyz\AppData\Local\Android\Sdk\platform-tools
    输入图片此处描述

To Solve this Problem you have to follow the below steps.

  1. go to tools->sdk manager check the Android API 35
  2. go to edit enivironment variables and paster your adb path or platform-tools path
    3)after completing the step you have to restart the system.
    i pasted C:\Users\xyz\AppData\Local\Android\Sdk\platform-tools
    enter image description here
揽清风入怀 2025-01-18 16:39:22

在 Windows 10 中,我将 /platform-tools 路径添加到环境变量的路径中,并将其修复。

In Windows 10 I added <ANDROID_SDK_PATH>/platform-tools path to the path of environment variables and it fixed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文