arabic_整形器在windows和linux上运行良好,但当我在android中以apk文件运行它时,应用程序崩溃了。 我的错误是:
python : Traceback (most recent call last):
python : File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/app/main.py", line 18, in <module>
python : File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/FinalAPP/arabic_reshaper/__init__.py", line 12, in <module>
python : FileNotFoundError: [Errno 2] No such file or directory: '/data/user/0/org.test.finalapp/files/app/_python_bundle/site-packages/arabic_reshaper/__version__.py'
python : Python for android ended.
在第18行中,输入阿拉伯语_整形器
我怎样才能解决这个问题
是的,我在*.spec中添加了阿拉伯语整形器,并使用了buildozer。谢谢,我读了《菜谱》,但我是初学者,所以理解得不够。我已经写了简单的代码,现在我不知道该把这个文件的名字放在哪里
您是否将该模块作为要求包括在内? 如果您已经编译了,模块可能已经编译了组件,并且需要一个配方。检查here
如果您使用的是buildozer,也可以尝试
buildozer android clean
另一个不推荐的解决方法是将模块包含在main.py所在的目录中
相关问题 更多 >
编程相关推荐