我正在嘗試打包我的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命令行工具from here,并將其放在根路徑中,但沒有成功。
我在this post中看到了一個解決方案,我做到了,但我沒有解決錯誤。
我有一個安裝了所有依賴項的virtualenv。我還編輯了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工作