-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
API 29 support #2360
Comments
Based on the versions listed Android's unsupported NDK releases, it looks like you're using Android NDK, Revision 19c. If you list the supported API platforms, you'll see it only goes up to API 28:
The latest version (NDK r21d) supports acceptable API versions 29 and 30:
The first step is to up the NDK version (and path) mentioned in your buildozer.spec file:
You could try NDK 20b. I don't know if it will work any better with python-for-android. I haven't gotten 21c to work yet. |
I can confirm that |
@obfusk - I'm curious what your set-up looks like. I'm on Ubuntu 18.04. I've downloaded the latest command line tools for the SDK, as per instructions. and installed two platform flavors and two build tools flavors: I also have three version of the NDK: I take a nice simple Kivy file: from kivy.app import App class MyApp(App):
if name == 'main': And tested a systematic range of SDK/NDK versions in the buildozer file by focusing on these three settings: ` (int) Target Android API, should be as high as possible.android.api = 30 (int) Minimum API your APK will support.android.minapi = 30 ... (str) Android NDK version to useqaandroid.ndk = 21d Target API values = (null), 27, 29, 30 I paired the API values only with NDK values that are valid. So NDK 19c doesn't use 29 or 30. In between each As long as my MinAPI is <= 28, I'm golden and I can build an app. (Also, prior to Google's Min API of 29, I'd regularly built and deployed Apps. Part of why I did this test was to make sure I didn't have any obvious software rot in my dev environment.) Whether I use NDK 20b or 21d and set the MinAPI >= 29, I get critical failure.
I can post the whole log file with color term characters and download progress bars now or can post a cleaner version if you tell me the best way to capture the log without these.
I don't see any python-for-android relevant DEX issues. The greater Android ecosystem issues tied to the same error suggest downgrading or upgrading the version of gradle to skip a problematic version. It looks like python-for-android is beyond that hump in gradle versions. |
@paulheider Pretty much this (modulo the Python 3.9 stuff). The play store requires target api >= 29 (but leaving |
@obfusk - Thanks! That was exactly the sort of kick I needed. I tried varying both API settings early on in my tests but had another lurking issue at the time. So my mind remembered doing the tests but forgot why they failed. (Or remembered the wrong reasons.) tldr; No, I don't need a higher minapi. I unset that feature and set the target API to 29 and everything works fine again. |
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide. Let us know if this comment was made in error, and we'll be happy to reopen the issue. |
I've been using the python-for-android libs successfully in the past in order to bundle Python with my own Java application. However, Google now requires API 29 support for all updates to the Play store, and I've been unsuccessful in getting this to work.
First, according to https://python-for-android.readthedocs.io/en/latest/quickstart/#installation , the recommended NDK version is r19b, but that one no longer seems available, so I installed r19c.
I have the following environment:
This command
gives the following error:
What is the recommended way to proceed, so that I can update my Android app again?
The text was updated successfully, but these errors were encountered: