Skip to content

Instantly share code, notes, and snippets.

@yebekhe
Created June 12, 2023 16:44
Show Gist options
  • Save yebekhe/bb07e8256c5aba2c43a185a5312fe5be to your computer and use it in GitHub Desktop.
Save yebekhe/bb07e8256c5aba2c43a185a5312fe5be to your computer and use it in GitHub Desktop.
Kivy App To APK
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/yebekhe/bb07e8256c5aba2c43a185a5312fe5be/kivy-app-to-apk.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "esRK2FDYHHxS"
},
"outputs": [],
"source": [
"!pip install buildozer"
]
},
{
"cell_type": "code",
"source": [
"!pip install cython==0.29.19"
],
"metadata": {
"id": "dotCHcJtHOnF"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!sudo apt-get install -y \\\n",
" python3-pip \\\n",
" build-essential \\\n",
" git \\\n",
" python3 \\\n",
" python3-dev \\\n",
" ffmpeg \\\n",
" libsdl2-dev \\\n",
" libsdl2-image-dev \\\n",
" libsdl2-mixer-dev \\\n",
" libsdl2-ttf-dev \\\n",
" libportmidi-dev \\\n",
" libswscale-dev \\\n",
" libavformat-dev \\\n",
" libavcodec-dev \\\n",
" zlib1g-dev"
],
"metadata": {
"id": "fPk201JDHRcF"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!sudo apt-get install -y \\\n",
" libgstreamer1.0 \\\n",
" gstreamer1.0-plugins-base \\\n",
" gstreamer1.0-plugins-good"
],
"metadata": {
"id": "LHmN0gZvHSXd"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev"
],
"metadata": {
"id": "elrRZQ-fHUF1"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!sudo apt-get install libffi-dev"
],
"metadata": {
"id": "V3JJyY3NHVz1"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!buildozer init"
],
"metadata": {
"id": "kbwtcLV1HXpF"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!buildozer -v android debug"
],
"metadata": {
"id": "Z1pqOWngHY0O"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!buildozer android clean"
],
"metadata": {
"id": "sbL2gpx8HZ7t"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "WBqg_GmWHbJ9"
},
"execution_count": null,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment