Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'# Android NDK is missing, downloading' - Android NDK is installed #769

Closed
drjoms opened this issue Dec 19, 2018 · 6 comments
Closed

'# Android NDK is missing, downloading' - Android NDK is installed #769

drjoms opened this issue Dec 19, 2018 · 6 comments

Comments

@drjoms
Copy link

drjoms commented Dec 19, 2018

Versions

  • Python:
    python --version
    Python 3.6.5
    eselect python list
    Available Python interpreters, in order of preference:
    [1] python3.6
    [2] python2.7
    [3] python3.4
    [4] python3.5 (fallback)

  • OS:
    uname -a
    Linux (none)dimko's Desktop 4.17.0-gentoo [app] "android.permission" contain an unknown permission  #6 SMP PREEMPT Sat Dec 8 22:29:46 GMT 2018 x86_64 AMD Ryzen 5 1600 Six-Core Processor AuthenticAMD GNU/Linux

  • Kivy:
    dev-python/Kivy
    Latest version available: 1.10.1
    Latest version installed: 1.10.1

  • Cython:
    dev-python/cython
    Latest version available: 0.25.2
    Latest version installed: 0.25.2

Description

/home/dimko/.local/bin/buildozer android debug deploy run

Check configuration tokens

Ensure build layout

Check configuration tokens

Preparing build

Check requirements for android

Install platform

Apache ANT found at /home/dimko/.buildozer/android/platform/apache-ant-1.9.4

Android SDK found at /home/dimko/.buildozer/android/platform/android-sdk-20

Android NDK is missing, downloading

Traceback (most recent call last):
File "/home/dimko/.local/bin/buildozer", line 11, in
sys.exit(main())
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/init.py", line 1059, in run_command
self.target.run_commands(args)
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/target.py", line 92, in run_commands
func(args)
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/target.py", line 102, in cmd_debug
self.buildozer.prepare_for_build()
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/init.py", line 176, in prepare_for_build
self.target.install_platform()
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/targets/android.py", line 507, in install_platform
self._install_android_ndk()
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/targets/android.py", line 319, in _install_android_ndk
cwd=self.buildozer.global_platform_dir)
File "/home/dimko/.local/lib64/python3.6/site-packages/buildozer/init.py", line 687, in download
urlretrieve(url, filename, report_hook)
File "/usr/lib64/python3.6/urllib/request.py", line 1819, in retrieve
block = fp.read(bs)
File "/usr/lib64/python3.6/tempfile.py", line 483, in func_wrapper
return func(*args, **kwargs)
ValueError: read of closed file

stuff never worked, i am trying to get it to work for a first time.

trying to use simple app i foudn on internet (50 lines or so)from Kivy to work on android.

@drjoms
Copy link
Author

drjoms commented Dec 20, 2018

somehow this line got lost in output:

Downloading http://dl.google.com/android/repository/android-ndk-r9c-linux-x86_64.tar.bz2

I checked this link and its dead as it gets

@drjoms
Copy link
Author

drjoms commented Dec 20, 2018

i am guessing it moved to:
https://developer.android.com/ndk/downloads/

but what do i do with it as a user?
and it requires user agreement, so new link is here it seems:
https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip

@fr3nzy
Copy link

fr3nzy commented Dec 24, 2018

@drjoms add the extracted folder to the android.ndk_path line in your buildozer.spec file, if you haven;t already figured it out :)

@drjoms
Copy link
Author

drjoms commented Dec 24, 2018 via email

maho added a commit to maho/buildozer that referenced this issue Dec 25, 2018
@homdx
Copy link

homdx commented Jan 8, 2019

@mahomahomaho
Error with:
buildozer.spec

android.api = 28
android.minapi = 21
android.sdk = 24
android.ndk = 17c

Log:

   creating: android-ndk-r17c/sources/android/renderscript/                                                                                                                                                                                   
  inflating: android-ndk-r17c/sources/android/renderscript/NOTICE                                                                                                                                                                             
  inflating: android-ndk-r17c/sources/android/renderscript/Android.mk                                                                                                                                                                         
  inflating: android-ndk-r17c/sources/android/renderscript/repo.prop                                                                                                                                                                          
  inflating: android-ndk-r17c/CHANGELOG.md                                                                                                                                                                                                    
  inflating: android-ndk-r17c/ndk-stack                                                                                                                                                                                                       
# Command failed: unzip /home/user/.buildozer/android/platform/android-ndk-r17c-linux-x86_64.zip
# 
# 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

@Julian-O
Copy link
Contributor

Code now supports different URL formats when version>=23.

Closing as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants