android – Buildozer无法执行最后一个命令

当我尝试构建,推送并使用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中提高日志级别= 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性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...