gpt4 book ai didi

android - Buildozer 执行最后一条命令失败

转载 作者:太空狗 更新时间:2023-10-29 21:24:04 27 4
gpt4 key购买 nike

当我尝试使用 buildozer android debug deploy run 在我的设备上构建、推送和自动运行 apk 时,它显示了这些错误:

# Check configuration tokens 

# Ensure build layout

# Check configuration tokens

# Preparing build


# Check requirements for android
# Install platform
# Apache ANT found at /home/sahil/.buildozer/android/platform/apacheant-1.9.4
# Android SDK found at /home/sahil/.buildozer/android/platform/android-sdk-21
# Android NDK found at /home/sahil/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Distribution already compiled, pass.
# Build the application #21
# Package the application
# Command failed: /usr/bin/python2.7 build.py --name demo --version 1.2.0 --package org.test.myapp --private /home/sahil/kivy/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug
#
# 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

我在文档和互联网上都查过了,但没有找到任何相关信息。我只是在制作一个简单的 Hello World 应用程序:

#version.regex
#__version__= '1.0'

from kivy.app import App
from kivy.uix.label import Label


class SimpleApp(App):
def build(self):
return Label(text="Hello World")


if __name__=="__main__":
SimpleApp().run()

谢谢!

最佳答案

首先在buildozer.spec中提高log level = 2,然后它会清楚地显示所有日志和错误。在 .buildozer/android/platform/python-for-android/dist/myapp/python 2.7 build.py 中丢失了。要解决此问题,请运行此命令 buildozer android clean,然后使用 buildozer android debug 重建它或使用 buildozer android debug deploy run 自动运行。

关于android - Buildozer 执行最后一条命令失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29072588/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com