pythonforandroid下载中文_python-for-android无法安装SDK

1586010002-jmsa.png

i'm new to kivy and python-for-android i followed the instructions in here but i face a problem using python-for-android

when i run buildozer android release the output is:

# 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

and when i run /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

i face:

[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? :/

解决方案

the problem is that i didnt use sudo permission

sudo buildozer android debug

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值