我的领域设备不是在Mac上作为ADB设备连接,而是在Windows上流利地连接

发布于 2025-01-31 13:49:18 字数 175 浏览 3 评论 0原文

设备在Windows上完美连接,但在MAC设备上没有要求信任此设备并在运行ADB设备时显示脱机的权限,我的手机是Realme 9 Pro Speed Adad, 我尝试在多个MacBook上尝试,但仍未连接,也尝试在每个Windows设备上成功连接的不同Windows笔记本电脑上尝试过。试图更换电缆,重建服务器,下载了最新的平台工具。

device is connecting perfectly on windows but not on mac devices is not asking permission to trust this device and showing offline while running adb devices command my phone is realme 9 pro speed addition,
i have tried on multiple macbook but still not connecting , also tried on diffrent windows laptops connected succesfully on each windows device. tried changing the cable , resarting server, downloaded latest platform-tools..

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

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

发布评论

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

评论(2

趴在窗边数星星i 2025-02-07 13:49:18

我在Realme Master GT上也有类似的问题,在我的情况下,解决方案是通过ADB无线连接的。此功能在Android 11中宣布。

  • 开发人员选项>无线调试>配对代码配对设备
  • 获取IP,端口,配对代码 - 示例:IP:port = 192.168.150.120:37181 pairing_code = 188231
  • 您的电话和计算机必须是连接到Mac上的同一WiFi网络
  • ADB对[IP:port] [pailing_code] - 示例:adb Pair 192.168.150.120:37181 188231 188231
  • 在Mac上:> ADB Connect 192.168.150.120:37181
  • 在Mac上:ADB设备

上次命令后,您的设备应正确列出,并准备运行npm npm React-native-narive-narive-narive-narive-and Android :)

I had similar issue on Realme Master GT and in my case solution was connecting wirelessly by adb. This feature was announced in android 11.

  • Developer options > Wireless debugging > Pair device with pairing code
  • Take ip, port, pairing code from phone - example: ip:port = 192.168.150.120:37181 pairing_code = 188231
  • Your phone and computer have to be connected to the same wifi network
  • On mac: adb pair [ip:port] [pairing_code] - example: adb pair 192.168.150.120:37181 188231
  • On mac: adb connect 192.168.150.120:37181
  • On mac: adb devices

After last command your device should be properly listed and ready to run npm react-native run-android :)

我为君王 2025-02-07 13:49:18

连接数据电缆后,从USB选项中选择“传输照片”。它将连接在ADB上。

Select "transfer photos" from usb options after connecting data cable. It will be connected on ADB.

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