【发布时间】:2021-02-28 01:30:52
【问题描述】:
尝试使用 buildozer(带有 Ubuntu 的 VM)打包我的应用程序时出现以下错误:
ImportError: dlopen failed: "/data/data/org.test.myapp/files/app/_python_bundle/site-packages/grpc/_cython/cygrpc.so" is a 64-bit instead of a 32-bit
显然这是因为我需要为 grpcio 编写一个自定义配方,所以我这样做了:
class GrpcioRecipe(CythonRecipe):
version = 'master'
url = 'https://github.com/grpc/grpc/archive/{version}.zip'
name = 'grpcio'
depends = ['six', 'futures', 'enum34']
recipe = GrpcioRecipe()
我将配方保存为grcpio_recipes.sh,将它放在一个名为recipes 的文件夹中,并将buildozer.spec 文件更改为# (str) The directory in which python-for-android should look for your own build recipes (if any) p4a.local_recipes = .buildozer/python-for-android/recipes
但是,我仍然遇到与以前相同的错误。我是否将食谱添加到了正确的区域 - 它似乎没有使用我的自定义食谱。
【问题讨论】: