Closed zRedHox closed 11 months ago
The install documentation tells you the versions of JDK you can use https://github.com/kivy/buildozer/blob/master/docs/source/installation.rst#android-on-ubuntu-2004-and-2204-64bit
If you change any dependency (such as Java version) you need to https://github.com/Android-for-Python/Android-for-Python-Users#changing-buildozerspec
If you still have an issue check the installed Java versions sudo update-alternatives --display java
and do any necessary cleanup.
If you still have an issue ask in the User Groups https://discord.gg/cxQ5rJQN
👋 @zRedHox, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
//I do java8 and get this error [DEBUG]: Where: [DEBUG]: Build file '/home/dai/pyoffice/kivy_project/kivy_venv/share/kivy1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp/build.gradle' line: 23 [DEBUG]:
[DEBUG]: What went wrong: [DEBUG]: A problem occurred evaluating root project 'myapp'. [DEBUG]: > Failed to apply plugin 'com.android.internal.application'. [DEBUG]: > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. [DEBUG]: You can try some of the following options: [DEBUG]: - changing the IDE settings. [DEBUG]: - changing the JAVA_HOME environment variable. [DEBUG]: - changing
org.gradle.java.home
ingradle.properties
I've search that java8 will work. It does at first but I get the error tell me to use JAVA 11 but when I switch to JAVA 11 there are still error
sh.ErrorReturnCode_1:
RAN: /home/dai/.buildozer/android/platform/android-sdk/tools/bin/avdmanager list target
STDOUT:
STDERR: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 5 more
buildozer.spec
Command:
Spec file:
Logs