Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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

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)

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.

I has a virtualenv with all dependencies installed. Also i edited the buildozer.spec and i was custom it

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

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.

I am working in Ubuntu 18

UPDATE Print Screen Error

like image 828
Javier Valero Avatar asked Apr 17 '19 20:04

Javier Valero


1 Answers

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

like image 189
Akshay Vijay Jain Avatar answered Oct 19 '22 00:10

Akshay Vijay Jain