Buildozer did not execute the last command

when I tried to create, click and automatically launch apk on my device using buildozer android debug deploy run , it shows these errors:

 # Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for android # Install platform # Apache ANT found at /home/sahil/.buildozer/android/platform/apacheant-1.9.4 # Android SDK found at /home/sahil/.buildozer/android/platform/android-sdk-21 # Android NDK found at /home/sahil/.buildozer/android/platform/android-ndk-r9c # Check application requirements # Check garden requirements # Compile platform # Distribution already compiled, pass. # Build the application #21 # Package the application # Command failed: /usr/bin/python2.7 build.py --name demo --version 1.2.0 --package org.test.myapp --private /home/sahil/kivy/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug # # Buildozer failed to execute the last command # If the error is not obvious, please raise the log_level to 2 # and retry the latest command. # In case of a bug report, please add a full log with log_level = 2 

I checked this in the documentation as well as on the Internet, but found nothing about it. And I'm just making a simple Hello World application:

 #version.regex #__version__= '1.0' from kivy.app import App from kivy.uix.label import Label class SimpleApp(App): def build(self): return Label(text="Hello World") if __name__=="__main__": SimpleApp().run() 

Thanks!

+6
source share
2 answers

First raise log level = 2 in buildozer.spec , then it will show all the logs and errors. Here in .buildozer/android/platform/python-for-android/dist/myapp/python 2.7 build.py missing. To fix this problem, run this buildozer android clean command and then rebuild it with buildozer android debug or automatically run it with buildozer android debug deploy run .

+10
source

You are probably using an updated version of cython, all major release forms are 0.21 and higher, you need to downgrade cython to 0.20 (sudo pip install cython == 0.20), then delete the .buildozer folder (rm -Rf.buildozer) and then rebuild using 'buildozer android debug'

+3
source

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


All Articles