Buildozer 执行最后一条命令失败
Buildozer failed to execute the last command
当我尝试使用 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()
谢谢!
可能你是 运行 cython 的更新版本,所有主要版本都从 0.21 及更高版本开始,你必须将 cython 降级到 0.20 ( sudo pip install cython==0.20 ) 然后删除 .buildozer 文件夹 ( rm -Rf .buildozer ) 然后用 'buildozer android debug'
重建
先在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
.
自动 运行 重建它
当我尝试使用 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()
谢谢!
可能你是 运行 cython 的更新版本,所有主要版本都从 0.21 及更高版本开始,你必须将 cython 降级到 0.20 ( sudo pip install cython==0.20 ) 然后删除 .buildozer 文件夹 ( rm -Rf .buildozer ) 然后用 'buildozer android debug'
重建先在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
.