buildozer - 用于python代码的INSTALL_FAILED_CPU_ABI_INCOMPATIBLE

时间:2017-08-14 09:21:18

标签: android python

我正在使用Buildozer,这对我来说应该是一个.apk而没有太多的复杂情况。

我使用this library编写了一个python脚本。换句话说,我写的python代码与Android没有任何关系,但我想在Android上使用它作为后端/库。我写的python代码在我的笔记本电脑上运行得非常好。

Buildozer设法生成.apk文件,但在Ubuntu上执行此命令时:

$ ./adb install myPythonScript.apk

我明白了:

myPythonScript.apk: 1 file pushed. 4.1 MB/s (7639867 bytes in 1.766s)
    pkg: /data/local/tmp/myPythonScript.apk
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]
rm failed for -f, No such file or directory

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:0)

您构建的CPU体系结构与您尝试安装应用程序的CPU体系结构不匹配。如果你想用python编写的android应用程序。我建议你从Kivy

开始