我在使用buildozer在kivy中编译我的应用程序时出现此错误,我无法弄清楚它的含义。我试着缩短我的应用程序的名称但是没有用。
File "build.py", line 507, in <module>
make_package(args)
File "build.py", line 326, in make_package
make_tar('assets/private.mp3', ['private', args.private], args.ignore_path)
File "build.py", line 203, in make_tar
tf.add(fn, afn)
File "/usr/lib/python2.7/tarfile.py", line 2014, in add
self.addfile(tarinfo, f)
File "/usr/lib/python2.7/tarfile.py", line 2037, in addfile
buf = tarinfo.tobuf(self.format, self.encoding, self.errors)
File "/usr/lib/python2.7/tarfile.py", line 999, in tobuf
return self.create_ustar_header(info)
File "/usr/lib/python2.7/tarfile.py", line 1016, in create_ustar_header
info["prefix"], info["name"] = self._posix_split_name(info["name"])
File "/usr/lib/python2.7/tarfile.py", line 1103, in _posix_split_name
raise ValueError("name is too long")
ValueError: name is too long
# Command failed: /usr/bin/python build.py --name MobilGame --version 1.0 --package org.test.myapp --private /home/nabeel/Desktop/game/ProjectGame/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
答案 0 :(得分:1)
我刚想通了,目录中还有其他文件也被添加到已编译的二进制文件中。一旦我将文件移动到一个新目录,他们就像黄油一样编译。