我正在尝试为我一直在进行的Kivy / python应用程序项目制作一个apk包,但是Buildozer失败了。我正在使用venv来容纳python3,如您在错误
中所见我尝试安装另一个堆栈溢出帖子的默认jdk和jre bc,但没有帮助。这是我的第一个应用程序项目,所以我很失落,我以为问题出在环境
请像我5岁时向我解释,谢谢!
更新:我已包含日志!
这是我得到的错误:
(env) Anthonys-MacBook-Pro:Recycle anthonychoi98$ buildozer android debug deploy run
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /Users/anthonychoi98/Documents/GitHub/Recycle/env/bin/cython
# Search for Java compiler (javac)
# -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
# -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /Users/anthonychoi98/Documents/GitHub/Recycle/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /Users/anthonychoi98/Documents/GitHub/Recycle/.buildozer/android/platform/python-for-android
* master ce9b5719 [origin/master] Merge pull request #1909 from kivy/release-2019.07.08
# Run '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 -m pip install -q \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517\' \'pytoml\' \'virtualenv\''
# Cwd None
# Apache ANT found at /Users/anthonychoi98/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /Users/anthonychoi98/.buildozer/android/platform/android-sdk
# Android NDK found at /Users/anthonychoi98/.buildozer/android/platform/android-ndk-r17c
# Installing/updating SDK platform tools if necessary
# Run '/Users/anthonychoi98/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools'
# Cwd /Users/anthonychoi98/.buildozer/android/platform/android-sdk
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: /Users/anthonychoi98/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools
# ENVIRONMENT:
# TERM_PROGRAM = 'Apple_Terminal'
# SHELL = '/bin/bash'
# TERM = 'xterm-256color'
# TMPDIR = '/var/folders/5f/ztc0crr17gq_493vpfs2pph00000gn/T/'
# Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.ly3poIqF00/Render'
# TERM_PROGRAM_VERSION = '421.1'
# OLDPWD = '/Users/anthonychoi98/Documents/Github/Recycle/buildozer'
# TERM_SESSION_ID = '93EEF745-BF85-4344-AF1A-626B3ADE822E'
# USER = 'anthonychoi98'
# SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.nFXRhOLwc9/Listeners'
# VIRTUAL_ENV = '/Users/anthonychoi98/Documents/GitHub/Recycle/env'
# PATH = '/Users/anthonychoi98/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/anthonychoi98/Documents/GitHub/Recycle/env/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands'
# PWD = '/Users/anthonychoi98/Documents/Github/Recycle'
# LANG = 'en_US.UTF-8'
# XPC_FLAGS = '0x0'
# PS1 = '(env) \\h:\\W \\u\\$ '
# XPC_SERVICE_NAME = '0'
# SHLVL = '1'
# HOME = '/Users/anthonychoi98'
# LOGNAME = 'anthonychoi98'
# SECURITYSESSIONID = '186a8'
# _ = '/Library/Frameworks/Python.framework/Versions/3.6/bin/buildozer'
# __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'
# __PYVENV_LAUNCHER__ = '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3'
#
# 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