Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1 #234

Closed
jligeza opened this issue Sep 30, 2015 · 6 comments

Comments

@jligeza
Copy link

jligeza commented Sep 30, 2015

I am new to kivy and I am trying to build + deploy a ,,hello world'' project.

This is the error message:

Traceback (most recent call last):
File "build.py", line 509, in
make_package(args)
File "build.py", line 357, in make_package
subprocess.check_call([ANT, arg])
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1

Command failed: /usr/bin/python2.7 build.py --name 'My Application' --version 1.0 --package org.test.myapp --private /home/stefan/kivy/test_project/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug

Also tried to set in buildozer.spec android.sdk from default to 20-24, but neither worked.

My SDK Manager looks like this:
sdk

I've downloaded buildozer today.
How can I build + deploy my project?

@akshayaurora
Copy link
Member

akshayaurora commented Sep 30, 2015 via email

@jligeza
Copy link
Author

jligeza commented Sep 30, 2015

I don't have gcj installed, and java -version produces this output:

java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

@jligeza
Copy link
Author

jligeza commented Oct 2, 2015

I haven't uploaded full error, so here it is:

...
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for MyApplication-1.0...

BUILD FAILED
/home/stefan/.buildozer/android/platform/android-sdk-21/tools/ant/build.xml:538: Unable to resolve project target 'android-14'

Total time: 1 second
/home/stefan/kivy/test_project/.buildozer/android/app/old_main.pyo
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/normal_log
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/gui (kopia bez floata).kv
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/log
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/gui.kv
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/error_log2
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/err_log
assets/private.mp3: /home/stefan/kivy/test_project/.buildozer/android/app/normal_log2
Traceback (most recent call last):
File "build.py", line 509, in
make_package(args)
File "build.py", line 357, in make_package
subprocess.check_call([ANT, arg])
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1

And here is my buildozer.spec (from default, changed only sdk, api and target): http://pastebin.com/WxME7paG

@tito
Copy link
Member

tito commented Oct 4, 2015

Android-14 doesn't seems to exists anymore. Try using 19 instead.

@tito tito closed this as completed Oct 4, 2015
@700brains
Copy link

@tito please sir, am using ubuntu OS and am having same problem where and where should i look for #android-19. or is it the API you're talking about.?

@700brains
Copy link

@jligeza
I recomend younot running with ROOT instead run outside root
Your buildozer.spec file has......

(str) Source code where the main.py live

source.dir = .

Then change it to something like

(str) Source code where the main.py live

source.dir = home/jligeza/kivyapps/where_your_application_folder_is

Notice:::: your .spec file allows the use of SUDO but buildozer does not allow it even if your app builds to run it in android device "IT CRASHES".
I don't know whether you understood me. if am wrong guys please correct me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants