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

Target ndk-api is 19, but the **python3 recipe supports only 21** #796

Closed
101iv opened this issue Jan 19, 2019 · 4 comments
Closed

Target ndk-api is 19, but the **python3 recipe supports only 21** #796

101iv opened this issue Jan 19, 2019 · 4 comments

Comments

@101iv
Copy link

101iv commented Jan 19, 2019

Versions

  • Python: 2.7
  • VM: 0.5

Description

// I'm trying to build an apk in a virtual machine, but an error comes out
Build failed: Target ndk-api is 19, but the python3 recipe supports only 21+
How do I change the settings to remove the API restriction?

buildozer.spec

Command:

[app]

title = FitRoom
package.name = fitroom
package.domain = org.test


source.dir = /media/sf_work/FitRoom-1.063-testcamera/
version = 0.1


requirements = python2, kivy==1.10.1, plyer

orientation = landscape

fullscreen = 1

android.permissions = CAMERA, WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, INTERNET

android.api = 19
android.minapi = 9
android.sdk = 21
android.ndk = 9c

android.logcat_filters = *:W python:D
p4a.branch = master

[buildozer]

log_level = 2
warn_on_root = 1

Logs

[ERROR]:   Build failed: Target ndk-api is 19, but the **python3 recipe supports only 21**+
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=fitroom --bootstrap=sdl2 --requirements=python2,kivy==1.10.1,plyer --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/kivy/.buildozer/android/platform/build"```
@ghost
Copy link

ghost commented Jan 19, 2019

@101iv as far as I'm aware you need to use an older p4a version with e.g. python3crystax, or use python 2 with the python2legacy recipe. or drop support for devices with API level lower than 21 (to do that, you need to set android.minapi to 21 and android.api to 21 or higher). There is currently no support implemented on latest master for API lower than 21 I believe

@101iv
Copy link
Author

101iv commented Jan 19, 2019

@Jonast , thank you for your time,
the application was assembled with the following settings:



[app]

title = FitRoom
package.name = fitroom
package.domain = org.test
source.dir = /media/sf_work/FitRoom-1.062/
source.include_exts = py,png,jpg,kv,atlas
version = 0.1


requirements = python2, kivy==1.10.1, plyer, pyjnius, android

android.permissions = CAMERA, WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, INTERNET

android.api = 27
android.minapi = 19
android.sdk = 23
android.ndk = r16b
android.ndk_api = 19

android.ndk_path = /home/kivy/Android/android-ndk-r16b/
android.sdk_path = /home/kivy/Android/android-sdk-23/

android.arch = armeabi-v7a
p4a.source_dir = /home/kivy/Repos/python-for-android/

[buildozer]
log_level = 2
warn_on_root = 1

Then, when there is time, I will test minapi < 19

@inclement
Copy link
Member

This is expected behaviour, since we no longer really support minimum/ndk APIs less than 21. Supporting minapi 19 with python3 would be possible, there was a patch for it that we could add, but that's a separate issue.

@fs-melo
Copy link

fs-melo commented Jun 8, 2020

Hi!
@inclement, we are starting a discussion about using the camera in API 21+ in Kivy 6919 issue.

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

3 participants