-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kivy Buildozer Error #1712
Comments
Check that the Java version meets the specification in the Buildozer install instructions. In future please use the user groups for usage questions. |
I
I have checked my java and changed it to 1.8.0, it worked but i am also having problems with my gradlew. It seems like my gradlew requires open jdk11 to clean assemble debug....... If i try to switch to java 11, Buildozer will give the error at the top of this page................... I don't know what to do, pls help?? |
The error now is ~ cd /mnt/c/Users/user/desktop/project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp && /mnt/c/Users/user/desktop/project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp/gradlew clean assembleDebug [WARNING]: ERROR: /mnt/c/Users/user/desktop/project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp/gradlew failed! Command failed: ['/mnt/c/Users/user/desktop/project/venv/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'myapp', '--name', 'My Application', '--version', '0.1', '--package', 'org.test.myapp', '--minsdk', '21', '--ndk-api', '21', '--private', '/mnt/c/Users/user/desktop/project/.buildozer/android/app', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--orientation', 'portrait', '--window', '--enable-androidx', '--copy-libs', '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/mnt/c/Users/user/desktop/project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug'] |
See the Buildozer install instructions for the correct Java version. I expect getting the Java version right will address the Gradle issue. When you get it right to be on the safe side, do this too https://github.com/Android-for-Python/Android-for-Python-Users#changing-buildozerspec And FYI if instructions for finding Gradle's actual first message https://github.com/Android-for-Python/Android-for-Python-Users#gradlew-failed |
Android on Ubuntu 20.04 and 22.04 (64bit) (expected to work as well in later version, but only regularly tested in the latest LTS) sudo apt update add the following line at the end of your ~/.bashrc fileexport PATH=$PATH:~/.local/bin/ If openjdk-17 is not compatible with other installed programs, for Buildozer the minimum compatible openjdk version is 11. |
On the site, it says either 17 or 11, but i tried both and still does not work for me At least, between..?? |
Check configuration tokensBuildozer is running as root! Ensure build layoutCheck configuration tokensPreparing buildCheck requirements for androidSearch for Git (git)-> found at /usr/bin/gitSearch for Cython (cython)-> found at /mnt/c/Users/user/desktop/project/venv/bin/cythonSearch for Java compiler (javac)-> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/javacSearch for Java keytool (keytool)-> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/keytoolInstall platformRun ['git', 'clone', '-b', 'master', '--single-branch', 'https://github.com/kivy/python-for-android.git', 'python-for-android']Cwd /mnt/c/Users/user/desktop/project/.buildozer/android/platformCloning into 'python-for-android'... Run ['/mnt/c/Users/user/desktop/project/venv/bin/python3', '-m', 'pip', 'install', '-q', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="win32"', 'build', 'toml', 'packaging']Cwd NoneApache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4Android SDK found at /root/.buildozer/android/platform/android-sdkRecommended android's NDK version by p4a is: 25bAndroid NDK found at /root/.buildozer/android/platform/android-ndk-r25bInstalling/updating SDK platform tools if necessaryRun ['/root/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager', '--sdk_root=/root/.buildozer/android/platform/android-sdk', 'platform-tools']Cwd /root/.buildozer/android/platform/android-sdkException in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema Command failed: ['/root/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager', '--sdk_root=/root/.buildozer/android/platform/android-sdk', 'platform-tools']i get this with version 17 and 11.....But it seeems to work perfectly with 8 except that gradlew get the error : -> #1712 (comment) |
Follow the install instructions, always. Some possibilities to explore (and 2-4 will definitely cause other issues later):
|
Thank You Very Much I have changed to 17 and went further to meet another error Warning: An error occurred while preparing SDK package Android SDK Build-Tools 34: Remote host terminated the handshake. |
Looks like a network error. |
Yeah, that definitely looks like a network error. Can you try to clean your |
Thank you very much Getting other bugs/errors but they are things i can handle for now, i'll update you on other error that shows up later |
Feel free to re-open another issue, if something else shows up. |
👋 @Ridola20, 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. |
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:527)
... 5 more
The text was updated successfully, but these errors were encountered: