我正在尝试构建我的Kivy项目的apk文件。
我已经在Python 2.7中使用PyCharm安装了buildozer,然后我构建了.spec
文件,
但是当我尝试创建apk文件时,我得到了以下结果:
我已经安装了JDK7和8。
Using:
buildozer Android debug
#Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for android # Java compiler (javac) not found, please install it.
Using:
buildozer -v Android debug
# Check configuration tokens # Ensure build layout # Check configuration tokens # Read available permissions from api-versions.xml # Preparing build # Check requirements for android # Run 'dpkg --version' # Cwd None /bin/sh: dpkg: comando non trovato # Search for Git (git) # -> found at /usr/bin/git # Search for Cython (cython) # -> found at /usr/bin/cython # Search for Java compiler (javac) # Java compiler (javac) not found, please install it.
Using:
buildozer Android debug deploy run
# Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for android # Java compiler (javac) not found, please install it.
我该如何让这个工作起来?
sudo apt-get install openjdk-14-jdk
。在Debian bullseye上测试通过。 - Mape