build.xml missing error with clean install of buildozer

387 views
Skip to first unread message

Ray Gallagher

unread,
Feb 10, 2019, 5:33:02 PM2/10/19
to Kivy users support
Hi. I've managed to get this far in making a basic buildozer build from scratch. It seems that the android sdk removed a version of build.xml which is a dependency of the build.xml which buildozer creates for it's ant build. [https://github.com/kivy/python-for-android/issues/1069]

I would drop the file in if I knew what it was supposed to contain but I can't find a reference anywhere. The ticket above talks about using gradle instead, and seems to suggest that buildozer uses gradle now instead of ant? But that's not what's happening here.

Anyone know where I can get myself a copy of the build.xml file this thing is talking about? Ant itself doesn't seem to have one.

Thanks,

Ray

Original error:

WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
Applying Java source code patches...
Applying patch: src/patches/SDLActivity.java.patch
Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch
[INFO]:    STDOUT:
        Buildfile: /home/ray/spike/spike_buildozer/.buildozer/android/platform/build/dists/myapp/build.xml

BUILD FAILED
/home/ray/spike/spike_buildozer/.buildozer/android/platform/build/dists/myapp/build.xml:93: Cannot find /home/ray/.buildozer/android/platform/android-sdk/tools/ant/build.xml imported from /home/ray/spike/spike_buildozer/.buildozer/android/platform/build/dists/myapp/build.xml

Total time: 0 seconds
[INFO]:    STDERR:

[INFO]:    COMMAND:
cd /home/ray/spike/spike_buildozer/.buildozer/android/platform/build/dists/myapp && /home/ray/.buildozer/android/platform/apache-ant-1.9.4/bin/ant debug

[WARNING]: ERROR: /home/ray/.buildozer/android/platform/apache-ant-1.9.4/bin/ant failed!
# Command failed: /home/ray/code/.virtualenvs/spike_buildozer/bin/python2 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name myapp --name 'My Application' --version 0.1 --package org.test.myapp --android_api 27 --minsdk 21 --ndk-api 21 --private /home/ray/spike/spike_buildozer/.buildozer/android/app --orientation portrait --window --copy-libs --arch armeabi-v7a --color=always --storage-dir="/home/ray/spike/spike_buildozer/.buildozer/android/platform/build" --ndk-api=21



Ray Gallagher

unread,
Feb 14, 2019, 3:03:21 PM2/14/19
to Kivy users support
Reading up on this, it appears to be caused by using an older Android SDK with a newer version of buildozer. At some point in the past Google changes from using Ant in the SDK to using Gradle, so the build.xml file just isn't there. I reckon this post is a dead end at this point, I might try to concentrate more on getting more recent versions of things working together.
Reply all
Reply to author
Forward
0 new messages