Skip to content

Error in using debug flag, calling ANT debugger? #179

Closed

Description

@mittenchops

Running...

./build.py --package org.test.touchtracer --name touchtracer --version 1.0 --dir ~/mine/kivy/examples/demo/touchtracer/ debug

Gave me an error to ant. Using Ubuntu 12.04:

Buildfile: /mine/python-for-android/dist/default/build.xml

BUILD FAILED
/home/mine/python-for-android/dist/default/build.xml:6: Source resource does not exist: /home/mine/python-for-android/dist/default/project.properties

Total time: 0 seconds
Traceback (most recent call last):
  File "./build.py", line 408, in <module>
    make_package(args)
  File "./build.py", line 332, 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
machine@machine:~/mine/python-for-android/dist/default$ 

But works when I remove the debug at the end.

Activity

  1. brousch commented on Dec 2, 2013

    @brousch
    Contributor

    Make sure you have ant installed and that it's available on your path. You
    might also try using the full path in --dir instead of a relative path.
    On Dec 1, 2013 11:25 PM, "adam" notifications@github.com wrote:

    Running...

    ./build.py --package org.test.touchtracer --name touchtracer --version 1.0 --dir ~/mine/kivy/examples/demo/touchtracer/ debug

    Gave me an error to ant. Using Ubuntu 12.04:

    Buildfile: /mine/python-for-android/dist/default/build.xml

    BUILD FAILED
    /home/mine/python-for-android/dist/default/build.xml:6: Source resource does not exist: /home/mine/python-for-android/dist/default/project.properties

    Total time: 0 seconds
    Traceback (most recent call last):
    File "./build.py", line 408, in
    make_package(args)
    File "./build.py", line 332, 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
    machine@machine:~/mine/python-for-android/dist/default$

    But works when I remove the debug at the end.

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/179
    .

  2. sentball commented on Dec 4, 2013

    @sentball

    i meet the same problem, osx 10.9

    [renderscript] No RenderScript files to compile.
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...
    [aapt] /Users/wy/Desktop/python-for-android-master/dist/default/bin/AndroidManifest.xml:9: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'

    BUILD FAILED
    /Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/tools/ant/build.xml:650: The following error occurred while executing this line:
    /Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/tools/ant/build.xml:691: null returned: 1

    Total time: 1 second
    Traceback (most recent call last):
    File "./build.py", line 408, in
    make_package(args)
    File "./build.py", line 332, in make_package
    subprocess.check_call([ANT, arg])
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1

  3. tshirtman commented on Dec 5, 2013

    @tshirtman
    Member

    Random idea: what android api did you install?

    On Wed, Dec 04, 2013 at 04:20:00AM -0800, sentball wrote:

    i meet the same problem, osx 10.9

    [renderscript] No RenderScript files to compile.
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...
    [aapt] /Users/wy/Desktop/python-for-android-master/dist/default/bin/AndroidManifest.xml:9: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'

    BUILD FAILED
    /Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/tools/ant/build.xml:650: The following error occurred while executing this line:
    /Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/tools/ant/build.xml:691: null returned: 1

    Total time: 1 second
    Traceback (most recent call last):
    File "./build.py", line 408, in
    make_package(args)
    File "./build.py", line 332, in make_package
    subprocess.check_call([ANT, arg])
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1


    Reply to this email directly or view it on GitHub:
    #179 (comment)

  4. sentball commented on Dec 6, 2013

    @sentball

    andriod-8
    mac NDK r8e

  5. xros commented on Dec 8, 2013

    @xros

    on ubuntu 12.04 x86_64 i got the same problem.
    it's how to fix it??
    Can't compile APK
    mine android-14, NDK r8e

  6. tito commented on Dec 8, 2013

    @tito
    Member

    Please provide a complete log, all of you cut the important part (at the start), and just give the error at the env. This is the result of a bad env i guess, but cannot know just from this.

  7. tito commented on Dec 8, 2013

    @tito
    Member

    And the real question is: which Android SDK did you used, and what is the Android API you've targetted ?

  8. sentball commented on Dec 9, 2013

    @sentball

    i can't upload the full log file

    ./distribute.sh: line 254: lsb_release: command not found
    Check build dependencies for
    Avoid check build dependencies, unknow platform
    Check enviromnent
    SDK located at /Users/wy/Desktop/trunk/Dep/android/android-sdk-mac
    NDK located at /Users/wy/Desktop/trunk/Dep/android/android-ndk-mac
    NDK version is r8e
    API level set to 8
    Check mandatory tools
    Distribution will be located at /Users/wy/Desktop/python-for-android-master/dist/default
    Entering in ARM enviromnent
    Compiler found at /Users/wy/Desktop/trunk/Dep/android/android-ndk-mac/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86_64/bin//arm-linux-androideabi-gcc
    PATH is /Users/wy/Desktop/trunk/Dep/android/android-ndk-mac/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/:/Users/wy/Desktop/trunk/Dep/android/android-ndk-mac/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86_64/bin/:/Users/wy/Desktop/trunk/Dep/android/android-ndk-mac:/Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/tools:/Users/wy/Desktop/trunk/Dep/android/android-ndk-mac:/Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/platform-tools:/Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/tools:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/wy/Desktop/trunk/Dep/android/android-sdk-mac/platform-tools
    Leaving ARM environment

  9. alanjds commented on Jul 25, 2015

    @alanjds
    Contributor

    Hi, @mittenchops.

    I got the same problem. I have not SDK 8 installed, but in my environ is set ANDROIDAPI=14. Still the build.py keeps targeting to 8. I guess this line is ignoring the system environ.

    Anyway, fixed by using ./build.py --sdk 14 ... debug command link. The --minsdk one had not worked here.

    Just confirm if it solves for you, ok? See ya.

  10. kasravnd commented on Aug 1, 2015

    @kasravnd

    @alanjds Do you mean this command :

    ./build.py --sdk 14 --package org.test.touchtracer --name touchtracer --version 1.0 --dir ./python-install/share/kivy-examples/demo/touchtracer debug 
    

    It still raised the same error

  11. alanjds commented on Aug 3, 2015

    @alanjds
    Contributor

    Just to be sure: Do you have an SDK and NDK installed that can compile level 14?

  12. kasravnd commented on Aug 3, 2015

    @kasravnd

    Yes I have the both bot I don't know that can compile level 14 or not! actually I think my main problem is because of that I have not the ant installed correctly, when I want to install it, It raised the following error :

    download failed
    Oracle JDK 7 is NOT installed.
    

    Since that I have JDK8 installed, am I need to install the JDK7?

  13. inclement commented on Feb 21, 2016

    @inclement
    Member

    I'm going to close this as a generic error that could be caused by a number of different things. If you still have the issue, try building with the new toolchain and report the full error output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions