将 SL4A (ASE) 连接到 GNU/Linux 盒子

发布于 2024-11-06 10:24:33 字数 465 浏览 4 评论 0原文

没有模拟器,有没有办法执行脚本。和其他正常的 py 代码一样吗? 尝试移植,但 /me 得到:

droid = android.Android()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/android.py", line 34, in __init__
self.conn = socket.create_connection(addr)
File "/usr/lib/python2.6/socket.py", line 547, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

Without emulator, is there a way to execute the scripts. as any other normal py code?
Tried to port, but /me gets :

droid = android.Android()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/android.py", line 34, in __init__
self.conn = socket.create_connection(addr)
File "/usr/lib/python2.6/socket.py", line 547, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

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

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

发布评论

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

评论(1

素年丶 2024-11-13 10:24:33

是的,您可以使用远程连接到手机并在本地执行脚本,请参阅 RemoteControl SL4A Wiki 中的

Yes, you can use a remote connection to your phone and execute the script local, see RemoteControl in the SL4A Wiki.

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