Android deployment – Kivy Mobile and Desktop App Dev w/ Python

Alright, now comes the moment of truth: Packaging! Packaging is what turned me off to Kivy many years ago. Let’s see how it is today. In this video. I cover deployment to android, but check out the text-based version of the tutorial for windows and others, along with more information on mobile deployment as time goes on and we figure more out.

Text-based tutorial and sample code: https://pythonprogramming.net/packaging-deployment-kivy-application-python-tutorial/

Kivy on linux: https://kivy.org/doc/stable/installation/installation-linux.html
buildozer deps: https://buildozer.readthedocs.io/en/latest/installation.html#targeting-android

Channel membership: https://www.youtube.com/channel/UCfzlCWGWYyIQ0aLC5w48gBQ/join
Discord: https://discord.gg/sentdex
Support the content: https://pythonprogramming.net/support-donate/
Twitter: https://twitter.com/sentdex
Facebook: https://www.facebook.com/pythonprogramming.net/
Twitch: https://www.twitch.tv/sentdex
G+: https://plus.google.com/+sentdex

33 comments

  1. Sahil Shukla on

    This is an intervention.

    Harrison, we love you okay, we do, but you gotta use the Tabs functionality in gnome-terminal, we can’t watch you destroy your productivity like this, switching between separate terminal windows.

    Reply
  2. John Dupuy on

    You can also test against Android Studio on Ubuntu. Essentially, a “virtual” software phone pops up. You can setup many profiles to run against so that you try out virtual tablets and different resolutions and capabilities. Don’t know if it has changed recently, but buildozer will include some required permissions by default. You can remove them by hacking the generated XML files. I’ve got a game on Google Play (called Kalah Mancala) that requests zero permissions. … That reminds me, I need to do an update on that app.

    Reply
  3. Vit Hopeman on

    Sentdex, do you have a video about how you started with coding/python? I’d like to learn your story, how you learned, how much time you spent. That would be awesome.

    Reply
  4. Andrew Challis on

    Great video, maybe consider building the deployment (both server and client) using a Docker container so that there is no need to go through all of the setup of Linux etc. this would also give you ease of deployment of your server to the cloud! ๐Ÿ™‚

    Reply
  5. sad zizou on

    i have this problem can u help pls:

    kivyy/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py”, line 571, in __init__
    if args.ignore_setup_py:
    AttributeError: ‘Namespace’ object has no attribute ‘ignore_setup_py’

    Reply
  6. mohd tmeme on

    kivy is too buggy, i can’t install kivy without the vm, then when you tried to build something it gets harder and harder

    Reply
  7. LKC LKC on

    Hello ther Iam having some trouble with the buildozer command, I am using the terminal in thee correct directory and the typing buildozer init but I get something saying buildozer: command not found, may I get some help please?

    Reply
  8. PostHumanOriented 8472-1488 on

    ๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€ RUST tuts next? I pray for this. c++ replacement, screaming fast performance, systems logic made easy, most loved language near Python which is #3; rust #1 most loved. soooo robust, the crab ๐Ÿฆ€ is waiting for sentdex and his badass yellow s2k =)

    Reply
  9. Eddie Richardson on

    I got the app to connect but the enter key does not send the message like when I hit enter on the keyboard when running it on my desktop only the send button works.

    Reply
  10. Jude Obande on

    Wonderful set of tutorials for kivy, before you move on to the next topic can you please do some more on charting with kivy (matplotlib or kivy garden graph)?

    Reply
  11. Ajay Dyavathi on

    # Command failed: /Users/ajay/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools

    #ย 

    # 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

    ANY HELP WITH THIS?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons