我正在为Android开发一个应用,并且我正在使用python语言,但是出现了一些错误。
它显示了很多错误,但我设法将其减少到目前的水平。
File "/home/kivy/Desktop/myproject/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/python2/__init__.py", line 53, in build_arch
join(self.ctx.get_python_install_dir(), 'bin', 'python.host'))
File "pythonforandroid/logger.py", line 175, in shprint
for line in output:
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 720, in next
self.wait()
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 651, in wait
self.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
sh.ErrorReturnCode_1:
RAN: /bin/cp /home/kivy/Desktop/myproject/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/hostpython /home/kivy/Desktop/myproject/.buildozer/android/platform/build/build/python-installs/myapp/bin/python.host
STDOUT:
/bin/cp: cannot create regular file '/home/kivy/Desktop/myproject/.buildozer/android/platform/build/build/python-installs/myapp/bin/python.host': No such file or directory
STDERR:
命令失败:/ usr / bin / python -m pythonforandroid.toolchain创建 --dist_name = myapp --bootstrap = sdl2 --requirements = kivy,hostpython2 --arch armeabi-v7a --copy-libs --color = always --storage-dir =“ / home / kivy / Desktop / myproject /。 buildozer / android / platform / build“ Buildozer无法执行最后一条命令该错误上方的日志中可能隐藏了该错误,请阅读完整的日志,并 在引起buildozer本身问题之前先进行搜索。如果 一个错误报告,请添加一个完整日志,其log_level = 2
这是在终端上写的东西