You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in using debug flag, calling ANT debugger? #179
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$
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:
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
.
[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
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)
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.
./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
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.
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?
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.
Activity
brousch commentedon 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:
sentball commentedon 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 commentedon Dec 5, 2013
Random idea: what android api did you install?
On Wed, Dec 04, 2013 at 04:20:00AM -0800, sentball wrote:
sentball commentedon Dec 6, 2013
andriod-8
mac NDK r8e
xros commentedon 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 commentedon 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 commentedon Dec 8, 2013
And the real question is: which Android SDK did you used, and what is the Android API you've targetted ?
sentball commentedon 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 commentedon 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 thebuild.pykeeps targeting to 8. I guess this line is ignoring the system environ.Anyway, fixed by using
./build.py --sdk 14 ... debugcommand link. The--minsdkone had not worked here.Just confirm if it solves for you, ok? See ya.
kasravnd commentedon Aug 1, 2015
@alanjds Do you mean this command :
It still raised the same error
alanjds commentedon Aug 3, 2015
Just to be sure: Do you have an SDK and NDK installed that can compile level 14?
kasravnd commentedon 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
antinstalled correctly, when I want to install it, It raised the following error :Since that I have JDK8 installed, am I need to install the JDK7?
inclement commentedon Feb 21, 2016
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.