lin@LIN:~/Desktop$ p4a apk --private /home/lin/Desktop/ --package=org.example.myapp --name "Myapplication" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=arm64-v8a --orientation portait --android_api=22 --icon /home/lin/Android/icon.png --no-compile-pyo --sdk_dir /home/lin/Android/Sdk --ndk_dir /home/lin/Android/android-ndk-r16b --ndk_version r16b --debug
[INFO]: Will compile for the following archs: arm64-v8a
[INFO]: Getting Android API version from user argument
[INFO]: Available Android APIs are (15, 19, 22, 23, 24, 25, 26, 27)
[INFO]: Requested API target 22 is available, continuing.
[INFO]: Getting NDK dir from from user argument
[INFO]: Got NDK version from from user argument
[INFO]: Using Google NDK r16b
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.9']
[INFO]: Picking the latest gcc toolchain, here 4.9
[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 (arm64-v8a)
[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 (arm64-v8a)
[INFO]: unnamed_dist_1 has compatible recipes, using this one
[INFO]: -> directory context /home/lin/.local/share/python-for-android/dists/unnamed_dist_1
[INFO]: Selecting java build tool:
[INFO]: Detected highest available build tools version to be 27.0.3
[INFO]: Building with ant, as no gradle executable detected
[DEBUG]: -> running ant debug
[DEBUG]: Buildfile: /home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml
[DEBUG]:
[DEBUG]: BUILD FAILED
[DEBUG]: Target "debug" does not exist in the project "Myapplication-0.1".
[DEBUG]:
[DEBUG]: Total time: 1 second
Exception in thread background thread for pid 4118:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2170, in background_thread
handle_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1929, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /home/lin/Desktop/apache-ant-1.10.3/bin/ant debug
STDOUT:
Buildfile: /home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml
BUILD FAILED
Target "debug" does not exist in the project "Myapplication-0.1".
Total time: 1 second
STDERR:
[INFO]: STDOUT:
Buildfile: /home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml
BUILD FAILED
Target "debug" does not exist in the project "Myapplication-0.1".
Total time: 1 second
[INFO]: STDERR:
[INFO]: COMMAND:
cd /home/lin/.local/share/python-for-android/dists/unnamed_dist_1 && /home/lin/Desktop/apache-ant-1.10.3/bin/ant debug
[WARNING]: ERROR: /home/lin/Desktop/apache-ant-1.10.3/bin/ant failed!
------------------------------------------------------------------------------------------------------------------------------------------------------------------------