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

Current android sdk has removed the ant/build.xml #1069

Closed
kamathln opened this issue Jun 21, 2017 · 5 comments
Closed

Current android sdk has removed the ant/build.xml #1069

kamathln opened this issue Jun 21, 2017 · 5 comments

Comments

@kamathln
Copy link

Please raise the priority of switching to gradle.

Same issue at processing

/home/kamathln/.local/share/python-for-android/dists/kivycatalog/build.xml:21: Cannot find /opt/apps/android-sdk-linux/tools/ant/build.xml imported from /home/kamathln/.local/share/python-for-android/dists/kivycatalog/build.xml
@inclement
Copy link
Member

inclement commented Jul 9, 2017

This should hopefully be fixed initially by #1071, but it needs people to test it.

@gobftald1
Copy link

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
https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip

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

@kamathln
Copy link
Author

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.

@gobftald1
Copy link

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

@inclement
Copy link
Member

#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).

opacam added a commit to opacam/python-for-android that referenced this issue Nov 25, 2018
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).
opacam added a commit to opacam/python-for-android that referenced this issue Nov 25, 2018
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.
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