python-for-android无法安装SDK [英] python-for-android fails installing SDK
本文介绍了python-for-android无法安装SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是kivy和python-for-android的新手,我按照此处中的说明进行操作,但是我在使用python-for-android
i'm new to kivy and python-for-android i followed the instructions in here but i face a problem using python-for-android
当我运行buildozer android release
时,输出为:
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/kasra/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/kasra/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/kasra/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=app --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kasra/Desktop/kivy/first_one :|/.buildozer/android/platform/build
#
# Buildozer failed to execute the last command
# If the error is not obvious, please raise the log_level to 2
# and retry the latest command.
# In case of a bug report, please add a full log with log_level = 2
当我运行/usr/bin/python -m pythonforandroid.toolchain create --dist_name=app --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kasra/Desktop/kivy/first_one :|/.buildozer/android/platform/build
我的脸:
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found possible SDK dirs in buildozer dir: android-sdk-20
[INFO]: Will attempt to use SDK at /home/kasra/.buildozer/android/platform/android-sdk-20
[WARNING]: This SDK lookup is intended for debug only, if you use python-for-android much you should probably maintain your own SDK download.
[INFO]: Android API target was not set manually, using the default of 15
[INFO]: Available Android APIs are (19)
[WARNING]: Requested API target 15 is not available, install it with the SDK android tool.
[WARNING]: Exiting.
有人可以帮忙吗? :/
can someone help please? :/
推荐答案
问题是我没有使用sudo权限
sudo buildozer android debug
the problem is that i didnt use sudo permission
sudo buildozer android debug
这篇关于python-for-android无法安装SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文