Buildozer failed to execute the last command(Buildozer 执行最后一条命令失败)
问题描述
当我尝试使用 buildozer android debug deploy run
在我的设备上构建、推送和自动运行 apk 时,它显示以下错误:
while I was trying to build,push and automatically run the apk on my device using buildozer android debug deploy run
it shows these errors:
# 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 应用程序:
I checked it out in documentation and also on internet but did not find anything about it. AND I am just making a simple Hello World application:
#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
自动运行.
First raise the log level = 2
in buildozer.spec
,then it will show all logs and error clearly. Here in .buildozer/android/platform/python-for-android/dist/myapp/python 2.7 build.py
was missing. To fix this issue run this command buildozer android clean
and then rebuild it using buildozer android debug
or automatically run using buildozer android debug deploy run
.
这篇关于Buildozer 执行最后一条命令失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Buildozer 执行最后一条命令失败
基础教程推荐
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01