Buildozer Android调试部署运行错误:命令失败:[‘tar’,‘xzf’,‘apache-ant-1.9.4-bin.tar.gz’]

shstlldc  于 2022-09-20  发布在  Android
关注(0)|答案(1)|浏览(142)

当我试图打包我的Kivy应用程序时,我收到了上述错误。运行buildozer android debug deploy run后,我遇到以下错误:

Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']

运行上述命令(tar xzf apache-ant-1.9.4-bin.tar.gz)时,我得到以下输出:

/usr/bin/gzip: 1: ELF: not found
/usr/bin/gzip: 3: : not found
/usr/bin/gzip: 4: Syntax error: "(" unexpected
tar: Child returned status 2
tar: Error is not recoverable: exiting now

试图在网上寻找任何与此相似的东西,但没有找到任何相关的东西。还有没有人看到这个错误?

Ubuntu版本信息:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

谢谢

ctehm74n

ctehm74n1#

我想念P4A和它的依赖关系:

https://python-for-android.readthedocs.io/en/latest/quickstart/

正在运行:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential ccache git zlib1g-dev python3 python3-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-8-jdk unzip ant ccache autoconf libtool libssl-dev

解决了我的问题

相关问题