我正在尝试为我的 kivy 项目构建一个 apk。我已经在 python 2.7 中使用 PyCharm 安装了 buildozer,然后我构建了.spec
.,但是当我尝试创建 apk 时,我得到了这些结果:我已经安装了 jdk7 和 8
使用:
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.
使用:
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.
使用:
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.
我怎样才能让它工作?