我正在尝试构建我的 kivy 项目的 apk。
我已经使用 PyCharm 在 python 2.7 中安装了 buildozer,然后我构建了 .spec,
但是当我尝试创建 apk 时,我得到了这些结果:
我已经安装了 jdk7 和 8
使用:buildozer Android 调试
#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 调试部署运行
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Java compiler (javac) not found, please install it.
我如何让它工作?
最佳答案
您需要安装 Java Development Kit。如果您使用的是基于 Debian 的系统(Ubuntu、Linux mint 等),只需在终端中输入:sudo apt-get install openjdk-8-jdk。在 Windows 上,您必须访问 Java 网站并手动下载 Java JDK。
要检查您是否安装了 Java JDK,请在控制台中输入 javac -version,您应该会看到如下消息:javac 1.8.0_91
关于android - Kivy Apk build with buildozer error : # Java compiler (javac) not found, 请安装它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33944684/