首页 > 解决方案 > buildozer 下载没有 api 的 android sdk

问题描述

我跑了buildozer android debug,我看到了这个:

# Read available permissions from api-versions.xml
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/hamid/Desktop/myfirstkivy/.buildozer/android/platform/build'
# Cwd /home/hamid/Desktop/myfirstkivy/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are ()
[WARNING]: Requested API target 19 is not available, install it with the SDK android tool.
[WARNING]: Exiting.
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/hamid/Desktop/myfirstkivy/.buildozer/android/platform/build
# 
# 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.

如您所见,没有 android API。当我尝试使用 android sdk manager 安装 API 时~/.buildozer/android/platform/android-sdk-20/tools/android,没有 API 可以安装它: 没有api

如何为 Android SDK 安装 API?我可以手动下载 SDK 或 API 并将其连接到 buildozer 吗?为什么 buildozer 无法下载正确的 SDK?

标签: androidbuildozer

解决方案


推荐阅读