本文介绍了kivy android app:将api级别从19设置为26失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用kivy,buildozer和Ubuntu 16.04创建一个android .apk文件.
I want to create an android .apk file with kivy, buildozer and Ubuntu 16.04.
现在我有一个android .apk,但是google playstore说,api级别19不可用.我必须将其设置为26.现在,在buildozer.spec文件中将android.api设置为26.运行此命令以创建api级别为26的新.apk文件后,出现以下问题:
Now I had an android .apk but google playstore said, that the api level of 19 is not available. I have to set it on 26. Now i set the android.api to 26 in the buildozer.spec file. After running this for creating a new .apk file with an api level of 26 i get the following problem:
[INFO]: Avaiable API's are (19)
[WARNING]: Request API target 26 is not available, install it with the SDK and android tool.
推荐答案
- 运行〜/.buildozer/android/platform/android-sdk-20/tools/android update sdk
- 选择 API 26
- 运行〜/.buildozer/android/platform/android-sdk-20/tools/android
- 选择 Android SDK构建工具26.x.x
- 检查
~/.buildozer/android/platform/android-sdk-20/build-tools/26.x.x/
中的 aidl 文件
- Run ~/.buildozer/android/platform/android-sdk-20/tools/android update sdk
- Select API 26
- Run ~/.buildozer/android/platform/android-sdk-20/tools/android
- Select Android SDK Build-tools 26.x.x
- Check aidl file in
~/.buildozer/android/platform/android-sdk-20/build-tools/26.x.x/
这篇关于kivy android app:将api级别从19设置为26失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!