Android compilation error using buildozer

I am trying to compile .apk ( this ) with buildozer. But I keep getting the error message below. I tried using a different python path, reinstalling buildozer, using different buildozer paths, compiling with Mac HD, compiling with sudo, another version of cython. Nothing works.

Traceback (last last call): File "build.py", line 497, in make_package (arg) File "build.py", line 351, in make_package subprocess.check_call ([ANT, arg]) File "/ usr / local /Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py ", line 540, in check_call raise CalledProcessError (retcode, cmd) subprocess.CalledProcessError: command '[' ant ',' debug ']' returns nonzero exit status 1

The command failed: /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python build.py --name 'My Application' - -version 1.2.0 --package org.test.myapp --private / Users / user / Documents / Py / kvapk / .buildozer / android / app --sdk 14 --minsdk 8 --permission INTERNET --with ACCESS_NETWORK_STATE - porting orientation

I'm on OSX Mavericks using python 2.7.5, kivy 1.8.0, cython 0.19 and buildozer 0.17

Here is the general conclusion: https://gist.github.com/feynman21/29d2f02c387112f2900b

+6
source share
1 answer

This is a problem due to which buildozer was unable to install Android tools. Hope this will be fixed soon. Until then, you can work around this by manually installing build-tools ( https://github.com/kivy/buildozer/issues/146#issuecomment-57061269 ):

  • Run ~/.buildozer/android/platform/android-sdk-21/tools/android to launch the Android SDK Manager. (If you have a different version of the SDK, replace android-sdk-21 with the appropriate folder)
  • Click the Deselect All link at the bottom of the window and check the box next to "Android SDK Build-tools - 20 Tools." (Note: the exact version does not matter, just select the latest version.) screenshot from 2014-09-27 13 17 13
  • Click the Install 1 package... button.
  • Click Accept License , and then click Install . screenshot from 2014-09-27 13 19 19
  • Close the SDK manager and resume working with buildozer.
+10
source

Source: https://habr.com/ru/post/976488/


All Articles