Hi, I'm struggling to get p4a up and running, but I'm stumped with this error. Any help appreciated.
user:~/python/kivy/exercises/countdown$ p4a apk --debug --package=org.exampe.countdown --name "Count Down" --version 0.1 --bootstrap=sdl2 --requirements=python3,kivy
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 27
[INFO]: Available Android APIs are (27)
[INFO]: Requested API target 27 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/user/android/android-ndk-r17c/
[INFO]: Could not determine NDK version, no source.properties in the NDK dir
[WARNING]: Unable to read the NDK version from the given directory /home/user/android/android-ndk-r17c/
[WARNING]: Make sure your NDK version is greater than 17. If you get build errors, download the recommended NDK 17c from
https://developer.android.com/ndk/downloads/[INFO]: Found Android API target in $NDKAPI
[WARNING]: NDK API less than 21 is not supported
[INFO]: Found virtualenv at /home/user/.local/bin/virtualenv
[WARNING]: ndk_platform doesn't exist: /home/user/android/android-ndk-r17c/platforms/android-19/arch-arm
[WARNING]: Could not find any toolchain for arm-linux-androideabi!
Traceback (most recent call last):
File "/home/user/.local/bin/p4a", line 11, in <module>
sys.exit(main())
File "/home/user/.local/lib/python3.6/site-packages/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/user/.local/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 668, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/home/user/.local/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 146, in wrapper_func
user_ndk_api=self.ndk_api)
File "/home/user/.local/lib/python3.6/site-packages/pythonforandroid/build.py", line 410, in prepare_build_environment
self.toolchain_version = toolchain_version
UnboundLocalError: local variable 'toolchain_version' referenced before assignment