Buildozer坚持命令:buildozer android debug

问题描述 投票:0回答:1

Python版本:2.7.15操作系统:Ubuntu 18.10

我正在尝试创建一个apk文件。我用ubuntu创建了一个虚拟框。现在ubuntu的终端卡在命令之后:buildozer android debug。

我能做些什么才能让它发挥作用?

This is where buildozer gets stuck

这是我使用命令时:buildozer android logcat

This is when I use the command: buildozer android logcat

我尝试了很多命令,现在终端卡住了:

enter image description here

我尝试安装Android SDK以便继续前进,使用以下命令:sudo apt update && sudo apt install android-sdk

但是终端在上面的截图中给出了错误。

我正在认真学习java并使用android studio。你怎么看待这件事?

附: buildozer文件中的log_level已经等于2。

ubuntu kivy buildozer
1个回答
0
投票

Solution - Missing adb

安装最新的平台工具(包括adb和fastboot)和API级别28的SDK工具:

  1. 更改目录,cd ~/.buildozer/android/platform/android-sdk/tools/bin
  2. 运行sdkmanager "platform-tools" "platforms;android-28"

Note

要显示完整日志,请在buildozer.spec中将log_level从1更改为2.重试buildozer android debug。

log_level = 2
© www.soinside.com 2019 - 2024. All rights reserved.