Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Android 上的 qpython 控制台中测试 pyjnius。
我的第一行:
from jnius import autoclass
在控制台中失败并出现 SystemError:NULL 结果在 PyObject_Call 中没有错误
有什么建议还是我错过了什么?
(我在两台安装了全新 qpython 的设备上对此进行了测试。)
也许你找到了解决方案,但前几天我对 QPython 和 Plyer 有过类似的体验。似乎你不能(还)在 QPython 的控制台中使用 Plyer 或 Pyjnius。将脚本作为 Kivy 应用程序运行可以导入 Plyer 或 Pyjnius。尝试添加以下行:
#-*-coding:utf8;-*- #qpy:2 #qpy:kivy
在你的脚本之上