我遇到了类似的问题: python kivy with plyer app crashes on android (camera) 这与使用python plyer库使用相机的Android应用程序崩溃有关。
我知道我可以使用python-for-android的old_toolchain,因为新的主版本仍有一个尚未解决的问题。
运行buildozer会自动克隆最新的python-for-android主机,所以问题是如何让它克隆旧版本而不是使用它?
我尝试按如下方式运行buildozer:
buildozer android_old debug
但我收到以下错误:
Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 9, in <module>
load_entry_point('buildozer==0.33', 'console_scripts', 'buildozer')()
File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1058, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 91, in run_commands
func(args)
File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 103, in cmd_debug
self.buildozer.build()
File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 212, in build
self.target.build_package()
File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 663, in build_package
self._update_libraries_references(dist_dir)
File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 857, in _update_libraries_references
if not content[-1].endswith(u'\n'):
IndexError: list index out of range