1

我使用 buildozer 来获取APK文件。我已将所需的库添加到 *.spec 文件中。但该应用程序并未在 Android 手机上打开。我用代码调试adb logcat *:S python:D。我注意到其中一个库工作不正常。所以我想使用PythonRecipe添加这个库。我根据这个站点编写了以下代码:

from pythonforandroid.recipe import PythonRecipe
class ArabicReshaperRecipe(PythonRecipe):
    url = 'https://github.com/mpcabd/python-arabic-reshaper/archive/master.zip'

    depends = ['python3', 'numpy','sys','unittest']

    site_packages_name = 'arabic_reshaper'

recipe = ArabicReshaperRecipe()

但我不知道把这个文件放在哪里以及给它起什么名字!

4

0 回答 0