Buildozer在W10上的Lubuntu VM上给出错误

时间:2019-01-31 09:34:45

标签: ubuntu kivy virtual-machine kivy-language

我是Kivy的新生,正在尝试学习它。我目前正在由W10计算机托管的VM上运行Lubuntu。

我从互联网上找到了一些密码,我想在自己的手机上使用它们。因此,我使用了Buildozer(0.37版)。最初,我遇到了有关Buildozer的错误,他们试图下载一个过时的Android NDK版本,但是它已经过时了,该链接不再有效。

因此,我首先从浏览器下载了NDK,并将其提取到所需目录,然后在Android.py上编辑了/usr/local/lib/python2.7/dist-packages/buildozer/targets,以确保Buildozer可以看到我的NDK。 Buildozer现在可以看到我的NDK,但是会出现错误。

这里是:

Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 11, in <module>
    sys.exit(main())
  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 1059, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 92, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 102, in cmd_debug
    self.buildozer.prepare_for_build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 176, in prepare_for_build
    self.target.install_platform()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 507, in install_platform
    self._install_android_ndk()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 285, in _install_android_ndk
    _version = re.search('(.+?)[a-z]', self.android_ndk_version).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

0 个答案:

没有答案