Buildozer命令失败 [英] Buildozer command failed

查看:374
本文介绍了Buildozer命令失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正尝试使用Buildozer将一个简单程序部署到我的Galaxy S5.我运行buildozer --verbose android debug deploy run,直到最后一部分为止:

so I am trying to deploy a simple program to my Galaxy S5 with Buildozer. I run buildozer --verbose android debug deploy run which goes fine until the very last part:

Traceback (most recent call last):
  File "build.py", line 491, in <module>
    make_package(args)
  File "build.py", line 354, in make_package
    subprocess.check_call([ANT, arg])
  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
# Command failed: /usr/bin/python build.py --name 'School Organized' --version 1.2.0 --    package org.test.schoolorganized --private /home/jolechiw/School-Organized/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug

输出的最后一部分可以在此处找到.我真的不明白命令失败"出了什么问题,但这可能是路径错误?我真的不确定.

The last part of the output can be found here. I really dont understand what went wrong with "Command Failed" but it might be a path error? I am really not sure.

我不知道这是否重要,但是我的应用程序源代码是此处

I dont know if this matters but my source code for the app is here

推荐答案

今天,我遇到了相同的建筑问题.问题出在Java本身,而不是buildozer.

today I had the same building issue. The problem was in Java itself rather than in buildozer.

必须必须使用 Java 7 完成:

piotr@jnlk ~/Kivy/SomeApp $ which java
/usr/bin/java

piotr@jnlk ~/Kivy/SomeApp $ java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

piotr@jnlk ~/Kivy/SomeApp $ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
(...)
# Distribution already compiled, pass.
# Build the application #137
# Package the application
# Command failed: /usr/bin/python2 build.py (...) --orientation landscape debug

使用Java8构建失败,但是当我将JAVA_HOME变量更改为Java7的位置时:

Building with Java8 fails, but when I changed JAVA_HOME variable to the location of Java7:

piotr@jnlk ~/Kivy/SomeApp $ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
piotr@jnlk ~/Kivy/SomeApp $ export PATH=${JAVA_HOME}/bin:${PATH}

piotr@jnlk ~/Kivy/SomeApp $ java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

piotr@jnlk ~/Kivy/SomeApp $ buildozer android debug
piotr@jnlk ~/Kivy/SomeApp $ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
(...)
# Android packages installation done.
# Check application requirements
# Check garden requirements
# Compile platform
# Distribution already compiled, pass.
# Build the application #138
# Package the application
# Android packaging done!
# APK <some-app-name>.apk available in the bin directory

构建成功完成:)

这篇关于Buildozer命令失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆