Skip to content Skip to sidebar Skip to footer

How To Fix 'java.lang.module.findexception: Module Java.se.ee Not Found' Error When Packaging My Kivy Application With Buildozer

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 occur

Solution 1:

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 has been deprecated in Java 9, 10 and removed in Java 11 (https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html)

Unfortunately there is no simple way to get the Android tools like sdkmanager or avdmanager running with Java 11 yet.

I was able to get buildozer running on Ubuntu again with Java 10:

  • Download Java 10 Linux x64 JDK (.tar.gz) from http://jdk.java.net/java-se-ri/10
  • Untar: tar -xzvf jdk-10_linux-x64_bin_ri.tar.gz
  • Set PATH: export PATH=/path/to/inflated/jdk-10/bin:$PATH

Solution 2:

was getting error License not accepted for SDK Build tools etc

solved by Installing

  1. SDK Command Line Tools
  2. Google Play licensing services

in SDK Manager > SDK Tools

helped me after getting frustrated for 2 hours, and hearing from everyone that only way is to downgrade Java

Solution 3:

You can solve this error by downgrading Java or by executing the below command in your terminal.

export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'

Also, don't download the platform tools yourself, let buildozer take care of that.

If the above command doesn't work try deleting the buildozer files from your app and rebuilding your application.

Post a Comment for "How To Fix 'java.lang.module.findexception: Module Java.se.ee Not Found' Error When Packaging My Kivy Application With Buildozer"