我一直在谷歌上搜索,发现有人展示了导入sl4a而不是androidhelper的脚本。当我尝试这样做的时候,我收到了“没有名为sl4a的模块”。它只在Qpython3中运行吗?我在qpython的site-packages文件夹中有用于arm的sl4a。Tks。
发布于 2016-11-13 11:25:03
在qpython2中,sl4a模块被打包在androidhelper中。事实上,sl4a模块将被导入到androidhelper中
您可以执行以下任一操作在qpython2中单独导入sl4a
from androidhelper import sl4a
# OR
import androidhelper.sl4a as sl4a
# OR
import androidhelper # then access sl4a with androidhelper.sl4a在qpython3中,sl4a和androidhelper模块都在sys.path中,所以您只需导入它们中的任何一个
https://stackoverflow.com/questions/40531959
复制相似问题