我无法连接到 Android 脚本层服务器。当我运行命令时,我收到以下错误:
> >>> a = android.Android() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "android.py", line 34, in
> __init__
> self.conn = socket.create_connection(addr) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
> line 553, in create_connection
> for res in getaddrinfo(host, port, 0, SOCK_STREAM): socket.gaierror: [Errno 8] nodename nor servname provided, or not
> known
我已采取的步骤: 1. 设置 adb 转发。2. 将 Android.py 文件提供给解释器。3.启动私人服务器并将设备连接到计算机。
有什么问题?