-
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
Current android sdk has removed the ant/build.xml #1069
Comments
This should hopefully be fixed initially by #1071, but it needs people to test it. |
this is caused by the fact that Android team has decided to remove all old and obsolete scripts from SDK in march release of 25.3.0 SDK Tools downloaded the previous version e.g. for OSX from then replace the tool directory in the fresh android-ndk with this one BTW it solves the problem with the missing/old "android" command in pythonforandroid/build.py |
Thanks! Already using an older version of tools. But this can best be described as a "hack" and there is no guarantee how much longer it will keep working. |
you are right, this for the new users, like me, who downloaded this p4a toolchain only 2-3 weeks ago and install its SDK/NDK environment from scratch with their update version, then run into these problems immediately sorry about this "hack", but I should have been made even more brutal "hacks", like https://github.com/kivy/python-for-android/issues/1012 but if I didn't want to loose my motivation for using this environment I should find quick fixes to continue my projects, even with these dirty solutions, I can simple track these workarounds, so if there would be an updated toolchain I will able to check whether original problems would have been solved or I should use these hacks again |
#1071 is now merged, so gradle should work (and be used by default with newer SDK versions) in the master branch. I wouldn't be surprised if there are still issues for some people, so testing this would be very helpful to accelerate its progression to the stable branch (and therefore buildozer users). |
The webview bootstrap was initially made thinking in the old python2 recipe and due to the recent changes in python2 build system, it was broken. Also, it was using the ant's tool to build the apk and this was causing troubles while compiling with latest android ndk (kivy#1069)...so...here we move the apk build tool from ant to gradle (because is the same build system than the sdl2's bootstrap). This changes will allow us to grant python3's compatibility for webview's bootstrap in a near future. The gradle changes are based on previously work done by @inclement and @tito for sdl2 bootstrap while introducing gradle (kivy#1071).
The service_only bootstrap was broken since the update of python recipe, plus it was using the ant's tool to build the apk and this was causing troubles while compiling with latest android ndk (kivy#1069)...so...here we move the apk build tool from ant to gradle (the same build system than the other bootstrap: sdl2 and webview). This changes will allow us to grant python3's compatibility for service_only's bootstrap in a near future. Also with this update, some of the args disabled for this bootstrap has been enabled (e.g.: application's icon or the aar dependency). The presplash was leaved out from those additions but maybe it should be included as well. The gradle changes are based on previously work done by @inclement and @tito for sdl2 bootstrap while introducing gradle (kivy#1071) and on the recent changes applied to the webview's bootstrap.
Please raise the priority of switching to gradle.
Same issue at processing
The text was updated successfully, but these errors were encountered: