問題描述
我正在嘗試打包我的 kivy 應用程序 (python3),但是當我運行命令 buildozer -v android debug
時看到此錯誤
I'm trying package my kivy app (python3) but when i run the command buildozer -v android debug
see this error
# 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 版本
I have this Java version
$ 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 命令行工具 從這里 并將其放在我的根路徑中,但我沒有成功了.
I downloaded only sdkmanager Command line tools from here and put it in my root path but i don't had success.
我在 這篇文章中看到了一個解決方案,我做到了,但我沒有解決錯誤.
I Saw in this post a solution and i did it but i don't solve the error.
我有一個安裝了所有依賴項的 virtualenv.我還編輯了 buildozer.spec
并且我自定義了它
I has a virtualenv with all dependencies installed. Also i edited the buildozer.spec
and i was custom it
Virtualenv 是:
The Virtualenv is:
(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 相關,但我不知道是什么.非常感謝您的幫助,請原諒我的英語不好.
I think that error is related to something related to JAVA but I do not know what. I would appreciate your helps, and please, excuse my bad English.
我在 Ubuntu 18 中工作
I am working in Ubuntu 18
更新打印屏幕錯誤
推薦答案
直到幾天前,如果您從 Ubuntu 存儲庫安裝了 openjdk-11-jdk/jre,您會發現它實際上是 Java 10 的一個版本(https://askubuntu.com/questions/1037646/why-is-openjdk-10-packaged-as-openjdk-11).
Up until a few days ago if you had installed openjdk-11-jdk/jre from the Ubuntu repos you would have found it was actually a version of Java 10 (https://askubuntu.com/questions/1037646/why-is-openjdk-10-packaged-as-openjdk-11).
java.se.ee 在 Java 9、10 中已棄用,在 Java 11 中刪除(https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html)
java.se.ee has been deprecated in Java 9, 10 and removed in Java 11 (https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html)
不幸的是,目前還沒有簡單的方法可以讓 sdkmanager 或 avdmanager 等 Android 工具在 Java 11 上運行.
Unfortunately there is no simple way to get the Android tools like sdkmanager or avdmanager running with Java 11 yet.
我能夠使用 Java 10 在 Ubuntu 上再次運行 buildozer:
I was able to get buildozer running on Ubuntu again with Java 10:
- 從 http://jdk 下載 Java 10 Linux x64 JDK (.tar.gz).java.net/java-se-ri/10
- 解壓:
tar -xzvf jdk-10_linux-x64_bin_ri.tar.gz
- 設置路徑:
export PATH=/path/to/inflated/jdk-10/bin:$PATH
這篇關于使用 buildozer 打包我的 kivy 應用程序時如何修復“java.lang.module.FindException:找不到模塊 java.se.ee"錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!