buildozer android NDK not downloading Ubuntu(buildozer android NDK没有下载Ubuntu)
问题描述
我正在使用操作系统 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:buildozer android NDK没有下载Ubuntu
基础教程推荐
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 筛选NumPy数组 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01