Skip to content

Instantly share code, notes, and snippets.

@hackalog
Created August 14, 2016 21:12
Show Gist options
  • Save hackalog/e0116c05d48e562d15b0b7a0f0d2a80d to your computer and use it in GitHub Desktop.
Save hackalog/e0116c05d48e562d15b0b7a0f0d2a80d to your computer and use it in GitHub Desktop.
p4a failure
amy@amy-nix14:~/kivy/drawing_app$ p4a apk --android-api=19 --private $HOME/kivy/drawing_app --package=org.learnleapfly.drawing_app --name "Drawing" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy
[INFO]: This python-for-android revamp is an experimental alpha release!
[INFO]: It should work (mostly), but you may experience missing features or bugs.
[INFO]: Will compile for the following archs: armeabi
[INFO]: Getting Android API version from user argument
[INFO]: Available Android APIs are (19, 23, 24)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[INFO]: Using Google NDK r12b
[INFO]: Found virtualenv at /home/amy/miniconda2/envs/kivy2/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.9']
[INFO]: Picking the latest gcc toolchain, here 4.9
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: unnamed_dist_1: includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (armeabi)
[INFO]: unnamed_dist_1 has compatible recipes, using this one
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: unnamed_dist_1: includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (armeabi)
[INFO]: unnamed_dist_1 has compatible recipes, using this one
[INFO]: -> directory context /home/amy/.local/share/python-for-android/dists/unnamed_dist_1
[INFO]: -> running ant debug
[INFO]: STDOUT (last 20 lines of 89):
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[dx] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[dx] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
BUILD FAILED
/home/amy/android/android-sdk-linux/tools/ant/build.xml:888: The following error occurred while executing this line:
/home/amy/android/android-sdk-linux/tools/ant/build.xml:890: The following error occurred while executing this line:
/home/amy/android/android-sdk-linux/tools/ant/build.xml:902: The following error occurred while executing this line:
/home/amy/android/android-sdk-linux/tools/ant/build.xml:283: null returned: 1
Total time: 2 seconds
[INFO]: STDERR:
[INFO]: COMMAND:
cd /home/amy/.local/share/python-for-android/dists/unnamed_dist_1 && /usr/bin/ant debug
[WARNING]: ERROR: /usr/bin/ant failed!
@Rodrigo-P
Copy link

I'm having the same problem. Have you found a solution?

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