我正在使用操作系统 Ubuntu 16.04 LTS.我已经在python2和python3中安装了buildozer.安装了android sdk,但是在下载android NDK时buildozer显示错误.请帮我解决这个问题.以下是错误.
I'am using the OS Ubuntu 16.04 LTS. I have installed the buildozer in the python2 and python3.The android sdk is installed but the buildozer is showing error while downloading android NDK.Please do help me to solve this issue. Following is the Error.
# Downloading http://dl.google.com/android/repository/android-ndk-r9c-linux-x86_64.tar.bz2
Traceback (most recent call last):
File "/home/fadii/.local/bin/buildozer", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/__init__.py", line 1026, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/target.py", line 91, in run_commands
func(args)
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/target.py", line 101, in cmd_debug
self.buildozer.prepare_for_build()
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/__init__.py", line 175, in prepare_for_build
self.target.install_platform()
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/targets/android.py", line 499, in install_platform
self._install_android_ndk()
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/targets/android.py", line 309, in _install_android_ndk
cwd=self.buildozer.global_platform_dir)
File "/usr/local/lib/python3.5/dist-packages/buildozer-0.33.dev0-py3.5.egg/buildozer/__init__.py", line 671, in download
urlretrieve(url, filename, report_hook)
File "/usr/lib/python3.5/urllib/request.py", line 1760, in retrieve
block = fp.read(bs)
File "/usr/lib/python3.5/tempfile.py", line 622, in func_wrapper
return func(*args, **kwargs)
我也遇到了同样的问题.当我尝试NDK的地址时,我发现google已经将URL更改为NDK.
I just had the same problem. When I tried the address of the NDK I found that google had changed the URL to the NDK.
Buildozer 配置有:http://dl.google.com/android/repository/android-ndk-r9c-linux-x86_64.tar.bz2
Buildozer is configured with: http://dl.google.com/android/repository/android-ndk-r9c-linux-x86_64.tar.bz2
但目前是:http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86_64.tar.bz2
解决方案是从工作 URL 手动下载 ndk,解压并将解压后的文件夹作为新的子文件夹放入:
The solution is to manually download the ndk from the working URL, unpack it and place the unpacked folder as new subfolder into:
/home/<your-user>/.buildozer/android/platform/
这篇关于buildozer android NDK没有下载Ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!