kivy android app:将api级别从19设置为26失败

时间:2018-08-07 16:39:58

标签: android python kivy buildozer

我想用kivy,buildozer和Ubuntu 16.04创建一个android .apk文件。

现在我有一个android .apk,但是google playstore说,api级别19不可用。我必须将其设置为26。现在,在buildozer.spec文件中将android.api设置为26。运行此命令以创建api级别为26的新.apk文件后,出现以下问题:

[INFO]: Avaiable API's are (19)
[WARNING]: Request API target 26 is not available, install it with the SDK and android tool.

1 个答案:

答案 0 :(得分:0)

  1. 运行〜/ .buildozer / android / platform / android-sdk-20 / tools / android更新sdk
  2. 选择 API 26
  3. 运行〜/ .buildozer / android / platform / android-sdk-20 / tools / android
  4. 选择 Android SDK Build-tools 26.x.x
  5. 检查~/.buildozer/android/platform/android-sdk-20/build-tools/26.x.x/中的 aidl 文件