Closed blvckallpv closed 5 years ago
Relevant part of the error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more
# Command failed: /root/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools
You probably have a too recent version of java, see https://stackoverflow.com/q/46402772/185510.
So try uninstalling what you have (java 9?) and installing openjdk-8-jdk
, see here for Ubuntu:
https://github.com/kivy/buildozer/blob/0.39/docs/source/installation.rst#android-on-ubuntu-1804-64bit
Also I don't recommend installing/running buildozer as root user.
I have done it, but i got another error in the process
I Checked and the Aidl can be executed, I'll need some help
Glad you got that one working. For your other problem please take a look at the issue below: https://github.com/kivy/buildozer/issues/824
Versions
Description
I am new to kivy and i am trying to build my first apk, which failed, bringing up so many errors
buildozer.spec
Command:
Spec file:
Logs