因Kivy Launcher打包太耗内存了,而且还需要连外网。于是尝试在Ubuntu2.0-04用Python-for-Android打包。我按照网上的教程经过各种折腾终于安装Python-for-Android。尝试用Python-for-Android打包时跳出来很多警告。打包失败,于是又从网上搜索各种解决办法最终还是有些解决不了。我把运行提示代码放下面了请问出现一下提示怎么解决?
[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/kindred/Sagteware/android-ndk-r23b
[INFO]: Found NDK version 23b
[WARNING]: Maximum recommended NDK version is 19c, but newer versions may work.
[WARNING]: Newer NDKs may not be fully supported by p4a.
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=27, default ndk-api=21)
[WARNING]: ndk_platform doesn't exist: /home/kindred/Sagteware/android-ndk-r23b/platforms/android-21/arch-arm
[WARNING]: Could not find any toolchain for arm-linux-androideabi!
Traceback (most recent call last):
File "/home/kindred/.local/bin/p4a", line 8, in <module>
sys.exit(main())
File "/home/kindred/.local/lib/python3.8/site-packages/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/kindred/.local/lib/python3.8/site-packages/pythonforandroid/toolchain.py", line 725, in __init__
getattr(self, command)(args)
File "/home/kindred/.local/lib/python3.8/site-packages/pythonforandroid/toolchain.py", line 143, in wrapper_func
ctx.prepare_build_environment(user_sdk_dir=self.sdk_dir,
File "/home/kindred/.local/lib/python3.8/site-packages/pythonforandroid/build.py", line 411, in prepare_build_environment
self.toolchain_version = toolchain_version
UnboundLocalError: local variable 'toolchain_version' referenced before assignment