一台PC上通过Wi-Fi进行的ADB速度非常慢,而另一台PC上速度很快 [英] ADB over Wi-Fi is extremely slow on one PC, great on another

查看:1050
本文介绍了一台PC上通过Wi-Fi进行的ADB速度非常慢,而另一台PC上速度很快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习如何为Android开发,并且希望能够在我的设备上进行测试,而不是在模拟器上进行测试。我手机上的USB端口变得非常松动,我宁愿不将它与我将要使用它进行测试的小时数搞混。

I'm trying to learn how to develop for Android, and I'd like to be able to test on my device instead of an emulator. The USB port on my phone is getting pretty loose, and I'd rather not mess it up with the scores of hours I'll be using it to test.

I在我的桌面上通过Wi-Fi启用了ADB,它运行得非常完美。该台式机运行Windows 7并在我的家庭网络上运行。

I enabled ADB over Wi-Fi on my desktop, and it worked flawlessly. This desktop runs Windows 7 and on my home network.

然后我安装了Android Studio,并在运行Windows 10的笔记本电脑上通过Wi-Fi启用了ADB。网络(没有辅助登录且速度更快)。可以,但是速度非常慢。当我在android studio中点击运行按钮时,我认为它已经冻结了。但是我使用了adb install,它可以正常工作-但速度非常慢。安装apk大约花了5分钟。

I then installed Android Studio and enabled ADB over Wi-Fi on my laptop, which runs Windows 10 and on my work network (which has no secondary login and is much faster). It works, but it's EXTREMELY slow. When I hit the "run" button in android studio, I thought it had frozen. But I used adb install, and it worked - but very slowly. It took about 5 minutes to install an apk.

我做了很多搜索,但似乎每个人都把这个问题视为您的设备有问题 或您的电缆有问题(即使通过Wi-Fi?)。或在一种情况下,该解决方案适用于Mac。

I've done a lot of searching but it seems that everyone seems to dismiss this problem as "a problem with your device" or "a problem with your cable (even though it's over Wi-Fi?)". Or in one case, the solution applied to a Mac.

有人知道如何解决此问题吗?

Does anyone know how to fix this?

推荐答案

我不确定这是否是a幸,但在线指南告诉我使用命令

I'm not sure whether this was a fluke, but a guide online told me to use the command

adb usb

,然后再通过Wi-Fi连接。我在设置台式机时是这样做的,但是对于我的笔记本电脑,我认为这是多余的,因为我的手机已经通过USB连接了。尽管如此,我还是断开了adb的连接,然后执行了所有步骤:

before connecting via Wi-Fi. I did this while setting up my desktop, but for my laptop I assumed it was redundant since my phone was already connected via USB. Still, I disconnected adb then went through all the steps:

adb usb
adb tcpip 5555
adb connect <ip>

它现在可以完美运行了。希望这会对某人有所帮助。

And it works perfectly now. Hopefully this helps someone.

这篇关于一台PC上通过Wi-Fi进行的ADB速度非常慢,而另一台PC上速度很快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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