[因此,我尝试使用kivy在Mac上编译apk文件,每当我使用命令buildozer android debug时,它都说未找到NDK,但随后它自己下载了一个NDK,但它是版本17c,然后它本身显示了一个错误消息,提示“构建失败:支持的最低NDK版本为19”,这是整个错误-
[ERROR]: Build failed: The minimum supported NDK version is 19. You can download it from https://developer.android.com/ndk/downloads/.
[INFO]: Instructions: Please, go to the android NDK page (https://developer.android.com/ndk/downloads/) and download a supported version.
*** The currently recommended NDK version is 19b ***
# Command failed: /Users/saqlainsajid/opt/anaconda3/envs/gen-37/bin/python -m pythonforandroid.toolchain create --dist_name=boringapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/saqlainsajid/PycharmProjects/.buildozer/android/platform/build" --ndk-api=21
# ENVIRONMENT:
# LANG = 'en_CA.UTF-8'
# TERM = 'xterm-256color'
# SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.87vhUoS8kJ/Listeners'
# HOME = '/Users/saqlainsajid'
# PATH = '/Users/saqlainsajid/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/saqlainsajid/opt/anaconda3/envs/gen-37/bin:/Users/saqlainsajid/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
# MAIL = '/var/mail/root'
# LOGNAME = 'root'
# USER = 'root'
# SHELL = '/bin/sh'
# SUDO_COMMAND = '/Users/saqlainsajid/opt/anaconda3/envs/gen-37/bin/buildozer android debug'
# SUDO_USER = 'saqlainsajid'
# SUDO_UID = '502'
# SUDO_GID = '20'
# PACKAGES_PATH = '/Users/saqlainsajid/.buildozer/android/packages'
# ANDROIDSDK = '/Users/saqlainsajid/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/Users/saqlainsajid/.buildozer/android/platform/android-ndk-r17c'
# ANDROIDAPI = '27'
# ANDROIDMINAPI = '21'
#
# 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
我尝试下载最新的Android NDK并将其解压缩到/Users/saqlainsajid/.buildozer/android/platform中
无效
我该怎么办?
过时的NDK将不起作用。最新版本可在此处(https://developer.android.com/ndk/downloads)上找到,下载并解压缩到指定目录,并防止所有时间下载,请在中指定解压缩的NDK所在的目录。 buildozer.spec * NDK_DIRECTORY