我正试图打包我的kivy应用程序(python3),但当我运行命令buildozer -v android debug
时出现了以下错误。
# Cwd /home/javier/.buildozer/android/platform/android-sdk
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.se.ee not found
# Command failed: /home/javier/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
我有这个 Java 版本。
$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.04.3)
OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.04.3, mixed mode, sharing)
我只下载了sdkmanager命令行工具 从这里 并将其放在我的根路径,但我没有成功。
我在这篇帖子中看到了一个解决方案,我也尝试了,但是我没有解决错误。
我有一个包含所有依赖项的虚拟环境。我还编辑了buildozer.spec
并进行了自定义设置。
虚拟环境为:
(envAppSinapsis)~/AppSin$ pip freeze
certifi==2019.3.9
chardet==3.0.4
Cython==0.28.2
docutils==0.14
idna==2.8
Kivy==1.10.1
Kivy-Garden==0.1.4
psycopg2==2.7.6.1
psycopg2-binary==2.7.6.1
pygame==1.9.4.dev0
Pygments==2.3.1
requests==2.21.0
urllib3==1.24.1
我认为那个错误与JAVA有关,但我不知道具体是什么。感谢您的帮助,同时请原谅我的糟糕英语。
我正在使用Ubuntu 18操作系统
更新信息: 打印屏幕错误截图