Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于连接安卓手机,报[ERROR] Local server not started, start with "$ python -m weditor"的一些解决方法 #114

Open
watfe opened this issue Jul 11, 2022 · 2 comments

Comments

@watfe
Copy link

watfe commented Jul 11, 2022

image

逐项测试以下方法:

  1. 参照提示重新执行 python -m weditor

  2. adb devices 获取安卓设备id,填入,然后刷新页面
    image

  3. http://localhost:17310/改成,你的本机ip,比如http://192.168.1.55:17310/

  4. 开发者工具中,禁用缓存参看 使用Dump Hierarchy 静态时一直提示本地服务器未启动 #76

  5. 打开安装手机上的ATX应用,点击启动UIAUTOMATOR一次(2022-07-11在安卓12MIUI13机器上碰到,具体日志为uiautomator2.exceptions.NullPointerExceptionError: -32001 Jsonrpc error: <java.lang.NullPointerException> data: java.lang.NullPointerException: Attempt to read from field 'int android.accessibilityservice.AccessibilityServiceInfo.flags' on a null object reference,通过本方法解决了)

@chris2007
Copy link

更换你的python版本至3.6.5 瞬间就好了

@Confusion-ymc
Copy link

注释掉源文件 \site-packages\colorama\ansitowin32.py 211行 试一下

def write_plain_text(self, text, start, end):
    if start < end:
        self.wrapped.write(text[start:end])
        # self.wrapped.flush()  # 这一行注释掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants