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

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

Closed
mittenchops opened this issue Dec 2, 2013 · 13 comments
Closed

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

mittenchops opened this issue Dec 2, 2013 · 13 comments

Comments

@mittenchops
Copy link

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.

@brousch
Copy link
Contributor

brousch commented Dec 2, 2013

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
.

@sentball
Copy link

sentball commented Dec 4, 2013

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

@tshirtman
Copy link
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)

@sentball
Copy link

sentball commented Dec 6, 2013

andriod-8
mac NDK r8e

@xros
Copy link

xros commented Dec 8, 2013

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

@tito
Copy link
Member

tito commented Dec 8, 2013

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.

@tito
Copy link
Member

tito commented Dec 8, 2013

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

@sentball
Copy link

sentball commented Dec 9, 2013

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

@alanjds
Copy link
Contributor

alanjds commented Jul 25, 2015

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.

@kasravnd
Copy link

kasravnd commented Aug 1, 2015

@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

@alanjds
Copy link
Contributor

alanjds commented Aug 3, 2015

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

@kasravnd
Copy link

kasravnd commented Aug 3, 2015

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?

@inclement
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants