Deploying Your Kivy/Python App to Android with Buildozer

  Рет қаралды 150,290

Erik Sandberg

Erik Sandberg

Күн бұрын

Пікірлер: 343
@erik-sandberg
@erik-sandberg 4 жыл бұрын
What a sick intro. I wrote all of the steps down in the description of today's video, so you can copy/paste commands into the command line if you want! Good luck getting your apps on Android everyone!
@pysuhayb15
@pysuhayb15 4 жыл бұрын
Thanks men
@VBox_tuhin
@VBox_tuhin 4 жыл бұрын
this is power full intro...like pro dancers
@flowless1753
@flowless1753 4 жыл бұрын
yeah the intro was insane thanks
@anishfernandes1281
@anishfernandes1281 3 жыл бұрын
I got the apk file generated but when I installed it in my phone the app crash closes..it shows loading and then closes.. I'm using kivy, kivymd and pyttsx3 packages.. Do you know why this would happen ?
@tranguyen758
@tranguyen758 3 жыл бұрын
@@anishfernandes1281 Have you fixed that problem? I'm having the same issue 😂. I use kivymd, plyer in my app
@johnabual-nile9333
@johnabual-nile9333 4 жыл бұрын
I never comment on anything but this helped me a ton (especially after trying to figure it out for over a week about 10 hours a day). If you are using a python module that requires you to utilize the internet (like say, paho-mqtt), make sure you change the permissions in your buildozer spec file (i think it's line 91) and allow the permissions for INTERNET. (i.e. delete the #). Before then my app would display the splash page and then crash. Literally, no video or article or stack overflow says to do this, hopefully this helps someone to not spend over 80 hours figuring it out ;)
@lorenzonetto9617
@lorenzonetto9617 3 жыл бұрын
I Have the same issue but I tried what you did and not work! Help meeee
@johnabual-nile9333
@johnabual-nile9333 3 жыл бұрын
What's the issue?
@lorenzonetto9617
@lorenzonetto9617 3 жыл бұрын
@@johnabual-nile9333 already solved! Thanks to replay
@hellowtwo1167
@hellowtwo1167 3 жыл бұрын
@@lorenzonetto9617 what was the solution? That others can find it.
@hellowtwo1167
@hellowtwo1167 3 жыл бұрын
it is in line 95 for me
@Dtomper
@Dtomper 4 жыл бұрын
This is the cleanest explanation ever. Omg I wasted so much time while I could just simply watch this video.
@9.4mviews81
@9.4mviews81 4 жыл бұрын
Hey which module you use in your code kivy or pygame and i have done all thing same but i got error
@maxcl3474
@maxcl3474 3 жыл бұрын
@@9.4mviews81 who the hell still uses Pygame?😆 ofcource Kivy is the best.
@mateusrodolfo98
@mateusrodolfo98 4 жыл бұрын
Excelent video. For Xiamoi users, you need to toggle "install via USB" too, under "USB debugging" for the deploy to work
@programmingislife1517
@programmingislife1517 3 жыл бұрын
i still have an error
@timmaassen9234
@timmaassen9234 4 жыл бұрын
I love you. It took me THREE days to get my app run on my phone having several errors I could not find anywhere. The worst thing is that I only discovered your video last night. This helped me so much. Still had to fix few errors which you did not have in the video (still ateup a lot of time) but now I have my app!!!!! Thank you so much! WIthout your video I probably would not be near to ready by now!
@chavarinbonbyn
@chavarinbonbyn 4 жыл бұрын
Great job. Could you please create a tutorial that enables Google play inapp purchase subscriptions using python+kivy+buildozer please?
@justinknew1554
@justinknew1554 4 жыл бұрын
thank you so much! i've never had an easier time following one of these technical tutorials. only one major problem that the comment section had a fix for me. very useful tutorial (problem was an error at the end of the last command, solved by Joona Syrjämäki)
@michaelkk213
@michaelkk213 4 жыл бұрын
Thank you thank you thank you so much!!! I've been struggling with this for a long time.
@neopiru7904
@neopiru7904 2 жыл бұрын
very well done. I ended up compiling apk for x64 devices and its only 12mb in size. For anyone having issues with gradle error be sure to use the same jdk-8 as mentioned in the video. Don't use the latest one!
@suyashvashishtha4904
@suyashvashishtha4904 4 жыл бұрын
Awesome man.. You are a code saver.. I thought there was no way i am going to make apk out of my kivy file bcz of complicity but you saved me....
@azimmirzoev6704
@azimmirzoev6704 4 жыл бұрын
keep this on brother. Have been learning from most of your tutorials! Thank you
@amlo50
@amlo50 3 жыл бұрын
Fantastic work here, just wanted to add that the developer must make sure that cython is installed in the system and not only virtual env as it will throw up some error messages,
@minihohtis5906
@minihohtis5906 3 жыл бұрын
I am having error "Could not find a version that satisfies the requirement Cython". When I try to install cython to ubuntu via terminal I always get etiher requirement satisfied or cython is already at newest version. Just to be clear if I understand you correctly: by system you mean Ubuntu or Windows?
@aarspainting81
@aarspainting81 2 ай бұрын
help how to install in the system
@hikkifans
@hikkifans 4 жыл бұрын
You won't believe how much it helped me. Thank you so much!
@stephenkinyanjui3748
@stephenkinyanjui3748 4 жыл бұрын
Very helpful.. Thank you for all the tutorials !!
@Supbuter
@Supbuter 4 жыл бұрын
Thanks for it, I started to write my college graduate work in python with kivy frontend, and met some problems with deploying it on Android. Thanks for that video, your tutorials are amazing. Anyway, currently I have got an error while building .apk: No Module Cython (i typed install command for it, so here is some magic).
@Supbuter
@Supbuter 4 жыл бұрын
UPD problem was fixed after installing Cython package by pip. It woud be nice if you'll update description.
@erik-sandberg
@erik-sandberg 4 жыл бұрын
@@Supbuter Awesome! What was the exact command you had to run? I didn't run into the same error. What did you do differently from the tutorial?
@Supbuter
@Supbuter 4 жыл бұрын
@@erik-sandberg 'pip3 install Cython' fixed it. Anyway, later I tried to build application with matplotlib, did all things devs require, and got stock by those linker errors: clang++: error: linker command failed with exit code 1. error: cannot find -lpython3.8m Maybe you could help me, or say where can I find solution? This app is my college graduate project, and there will be deadline soon, but I can't built even simple matplotlib app. Thanks in advance!
@erik-sandberg
@erik-sandberg 4 жыл бұрын
@@Supbuter Matplotlib is kind of a tricky one. I don't think I'll get into using that soon -- for now I would suggest using the kivy.garden.graph module if you're just using linecharts. That's what I've been using in my apps. Good luck!
@Supbuter
@Supbuter 4 жыл бұрын
@@erik-sandberg I have a finance application and I need to draw financial candlesticks, does garden.graph has this feature?
@tranguyen758
@tranguyen758 3 жыл бұрын
Thank you for your explanation. I have been learned a lot from your videos. Keep it up!
@robh9184
@robh9184 4 жыл бұрын
Wow it worked! Thanks Erik :) liked, subscribed and recommended!
@shadeeztv625
@shadeeztv625 4 жыл бұрын
I'm so happy for this, but please i need a tutorial for deploying kivymd, i built several Apps with only kivy, and whenever i tried for kivymd it crashes on the Android device. Please help
@Sharukkhan-kx9rw
@Sharukkhan-kx9rw 4 жыл бұрын
Hi friend, My question is, I used matplotlib kivy garden to display my graphs and it's working, is there any chance of Working well when run in python and not work when I convert it into APK Actually what I mean is Everytime we have to convert it into APK and see its working or not, or It can definitely work when it is successfully run in python? Thanks in advance
@NurulIslam-dw8yp
@NurulIslam-dw8yp 4 жыл бұрын
Add kivymd in requirements
@siyam.88
@siyam.88 4 жыл бұрын
Thanks man! I managed to do it on WSL with the help of your video :)
@rameshverma9410
@rameshverma9410 4 жыл бұрын
Awesome technique bro.. Love it😍😍😍🤗
@logeshwaranr6847
@logeshwaranr6847 3 жыл бұрын
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none) ERROR: No matching distribution found for Cython What should i do for this error ? I am using kali linux Edit: sudo apt-get install libssl-dev Fixes the problem
@solomonmachin4605
@solomonmachin4605 4 жыл бұрын
Best video i found on this and a great tutorial VERY clear thanks
@SandeshDhunganaBCE
@SandeshDhunganaBCE 4 жыл бұрын
I followed the same procedure as yours and got the following error. Could you please what can be wrong here in my code? WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting Cython WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ Could not fetch URL pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement Cython (from versions: none) ERROR: No matching distribution found for Cython WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping STDERR: # Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=HamroCalc --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/sandesh/HamroCalc/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21 # ENVIRONMENT: # SHELL = '/bin/bash' # SESSION_MANAGER = 'local/sandesh-VirtualBox:@/tmp/.ICE-unix/1464,unix/sandesh-VirtualBox:/tmp/.ICE-unix/1464' # QT_ACCESSIBILITY = '1' # COLORTERM = 'truecolor' # XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg' # XDG_MENU_PREFIX = 'gnome-' # GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated' # GTK_IM_MODULE = 'ibus' # QT4_IM_MODULE = 'ibus' # LC_ADDRESS = 'bho_NP' # GNOME_SHELL_SESSION_MODE = 'ubuntu' # LC_NAME = 'bho_NP' # SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh' # XMODIFIERS = '@im=ibus' # DESKTOP_SESSION = 'ubuntu' # LC_MONETARY = 'bho_NP' # SSH_AGENT_PID = '1330' # GTK_MODULES = 'gail:atk-bridge' # PWD = '/home/sandesh/HamroCalc' # LOGNAME = 'sandesh' # XDG_SESSION_DESKTOP = 'ubuntu' # XDG_SESSION_TYPE = 'x11' # GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1' # XAUTHORITY = '/run/user/1000/gdm/Xauthority' # GJS_DEBUG_TOPICS = 'JS ERROR;JS LOG' # WINDOWPATH = '2' # HOME = '/home/sandesh' # USERNAME = 'sandesh' # IM_CONFIG_PHASE = '1' # LC_PAPER = 'bho_NP' # LANG = 'en_US.UTF-8' # LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' # XDG_CURRENT_DESKTOP = 'ubuntu:GNOME' # VTE_VERSION = '6001' # GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/e37a2469_a91f_413a_a271_6d3e0366df78' # INVOCATION_ID = '736b0d889c2541cd9afa1a69946f219a' # MANAGERPID = '1160' # CLUTTER_IM_MODULE = 'ibus' # GJS_DEBUG_OUTPUT = 'stderr' # LESSCLOSE = '/usr/bin/lesspipe %s %s' # XDG_SESSION_CLASS = 'user' # TERM = 'xterm-256color' # LC_IDENTIFICATION = 'bho_NP' # LESSOPEN = '| /usr/bin/lesspipe %s' # USER = 'sandesh' # GNOME_TERMINAL_SERVICE = ':1.167' # DISPLAY = ':0' # SHLVL = '1' # LC_TELEPHONE = 'bho_NP' # QT_IM_MODULE = 'ibus' # LC_MEASUREMENT = 'bho_NP' # XDG_RUNTIME_DIR = '/run/user/1000' # LC_TIME = 'bho_NP' # JOURNAL_STREAM = '9:30524' # XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop' # PATH = '/home/sandesh/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' # GDMSESSION = 'ubuntu' # DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus' # LC_NUMERIC = 'bho_NP' # _ = '/usr/local/bin/buildozer' # OLDPWD = '/home/sandesh' # PACKAGES_PATH = '/home/sandesh/.buildozer/android/packages' # ANDROIDSDK = '/home/sandesh/.buildozer/android/platform/android-sdk' # ANDROIDNDK = '/home/sandesh/.buildozer/android/platform/android-ndk-r19c' # ANDROIDAPI = '27' # ANDROIDMINAPI = '21' # # Buildozer failed to execute the last command # The error might be hidden in the log above this error # Please read the full log, and search for it before # raising an issue with buildozer itself. # In case of a bug report, please add a full log with log_level = 2
@aarspainting81
@aarspainting81 2 ай бұрын
any update?
@michaelmacneill206
@michaelmacneill206 4 жыл бұрын
Device not attaching? I had an issue where my android device (samsung galaxy s20) was showing up when using 'lsusb' command, but was not attaching or showing up when using 'adb devices' command. Fixed the issue by installing 'apt-get install android-sdk-platform-tools-common' after first installing 'sudo apt-get install adb '. Hope it helps!
@wherethetacotakesus
@wherethetacotakesus 2 жыл бұрын
I have been following this all the way to buildozer android debug deploy run. Everything has been working well but i keep getting an error that cython is not installed, then when i go back to the install line it says 'cython has no installation packages' Is this a common issue?
@thewilltejeda
@thewilltejeda 4 жыл бұрын
Great Vid! Building for Android is definitely a pain point for most people, myself included. Would love to see more examples of including files and other modules in the build over spec . Also, have you ever tried kivymd and other modules in Kivy launcher ?
@akmaljahan8940
@akmaljahan8940 4 жыл бұрын
Bro I am getting error which says could not find a version to satisfy the requirement python (from versions: none)....
@fizz7941
@fizz7941 4 жыл бұрын
It creates and runs the apk but after that my app immediately crashes. Any solutions about that😫
@samiroutka
@samiroutka 3 жыл бұрын
Thanks, you are single who help me ... Thaaaaanks
@clevercodeverse993
@clevercodeverse993 3 жыл бұрын
Very helpful tutorials thanks a lot man
@masterg6477
@masterg6477 4 жыл бұрын
what is mean (lld not found, linking without it. consider installing lld if linker)?
@АлександрКузик-х2к
@АлександрКузик-х2к 4 жыл бұрын
It means, that there is no package lld in your computer. Install it with sudo apt-get install lld. P.S. I have got an error while buildozer downloads cython. It occures due to some ssl package from python2 repository. So, if you have that error, you should install package libssl-dev with sudo apt-get install libssl-dev
@MrSpark05
@MrSpark05 4 жыл бұрын
@@АлександрКузик-х2к Hello there, thanks for your comment it saved! Keep up with the good comments and help :)
@MrSpark05
@MrSpark05 4 жыл бұрын
Thanks mate, keep up the good work!
@pritigoel8662
@pritigoel8662 3 жыл бұрын
Is it possible to remove 18:15 kivy logo from the app
@mamartyacse1
@mamartyacse1 4 жыл бұрын
I have used VMWare workstation 15, Ubuntu 18.04, python 3.6 pip3 version 9.0.1 I have followed the your instruction and try to deploy but it showing the following error Please help... Thanks in advanced... *** PYTHON PACKAGE / PROJECT INSTALL STAGE *** [INFO]: The requirements (certifi) don't have recipes, attempting to install them with pip [INFO]: If this fails, it may mean that the module has compiled components and needs a recipe. [INFO]: -> directory context /home/am-ubuntu/kiv/.buildozer/android/platform/build-armeabi-v7a/build [INFO]: -> running python3 -m venv venv [INFO]: Upgrade pip to latest version [INFO]: -> running bash -c source venv/bin/activate && pip install -U pip [INFO]: Install Cython in case one of the modules needs it to build [INFO]: -> running bash -c venv/bin/pip install Cython Exception in thread background thread for pid 89272: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 1662, in wrap fn(*args, **kwargs) File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 2606, in background_thread handle_exit_code(exit_code) File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 2304, in fn return self.command.handle_command_exit_code(exit_code) File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /bin/bash -c 'venv/bin/pip install Cython' STDOUT: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting Cython WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ Could not fetch URL pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement Cython (from versions: none) ERROR: No matching distribution found for Cython WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping STDERR: Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1231, in main() File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main ToolchainCL() File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 688, in __init__ getattr(self, command)(args) File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func build_dist_from_args(ctx, dist, args) File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 208, in build_dist_from_args args, "ignore_setup_py", False File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 598, in build_recipes ignore_setup_py=ignore_project_setup_py File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 778, in run_pymodules_install ), _env=copy.copy(base_env)) File "/home/am-ubuntu/kiv/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint for line in output: File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 925, in next self.wait() File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 849, in wait self.handle_command_exit_code(exit_code) File "/home/am-ubuntu/.local/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /bin/bash -c 'venv/bin/pip install Cython' STDOUT: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting Cython WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/ Could not fetch URL pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement Cython (from versions: none) ERROR: No matching distribution found for Cython WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
@danielslaugh5537
@danielslaugh5537 4 жыл бұрын
I'm getting the same error
@mamartyacse1
@mamartyacse1 4 жыл бұрын
@@danielslaugh5537 it showing invalid TLS/SSL certificate and also showing no SSL module found. After getting this error I have also tried to install sudo apt-get install ssl. But it is showing error on installation. Also I have installed openssl but problem still persist...
@danielslaugh5537
@danielslaugh5537 4 жыл бұрын
@@mamartyacse1 I'm thinking the SSL module is the problem as well. I tried 'sudo apt-get install libssl-dev' which installed successfully, but didn't make any difference to the errors
@mamartyacse1
@mamartyacse1 4 жыл бұрын
@@danielslaugh5537 absolutely true... I have also tried the same.. but no change... so what is your suggestion about it?
@danielslaugh5537
@danielslaugh5537 4 жыл бұрын
@@mamartyacse1 That is a good question. I found a stack overflow post that was kind of similar to our problem here: stackoverflow.com/questions/54135206/requests-caused-by-sslerrorcant-connect-to-https-url-because-the-ssl-module They seemed to think that working with the PATH variable would help, so I'll work on that a little and see if I find anything
@karanchauhan2728
@karanchauhan2728 4 жыл бұрын
i did everything step by step as you showed, but at the end it is giving me "No matching distribution found for Cython" and SSL error - "ssl module in Python is not available " even i tried upgrading the pip to latest version !! i hope if u have something on this ..
@chaoswerk-statt1775
@chaoswerk-statt1775 4 жыл бұрын
Hey, read the solution of Joona Syrjämäki. That should work. :)
@bluebig4974
@bluebig4974 4 жыл бұрын
amazing tutorial bro, i do have one question tho, if i made my GUI using Tkinter, can i still do this or is it required to have the GUI done using Kivy?
@jonathasrobison9167
@jonathasrobison9167 Жыл бұрын
Como fazer esses teste no windows? estou usando o colab pra fazer o debug
@jamessilva4362
@jamessilva4362 11 ай бұрын
Caso não tenha conseguido use esse: colab.research.google.com/drive/16wji2BWd5HHlp7eNqBBcZONCxxCzV-jy?usp=sharing#scrollTo=X7C_WbflvOCy
@limbosounds4323
@limbosounds4323 4 жыл бұрын
after this video would i be able to transfer the app to other phone and install by .apk file
@ruardstolper9072
@ruardstolper9072 3 жыл бұрын
Hey Erik, mu first reaction ever. Thanks for your tutorial! With your help I made my first APK. But when I wanted to upload it I saw that google only accept AAD format (since august). Is there a way to make an app in AAD format? Could you make the same kind of video about that? Greetings, ruard
@justaivideos
@justaivideos 3 жыл бұрын
Incase you find out please tell me :)
@ianrajkumar
@ianrajkumar 3 жыл бұрын
Erik, if we use only "buildozer -v android debug", will it generate the apk file without installing it on the phone? Meaning, we can get the apk without connecting our phone and then install it later?
@MysteryMorsels950
@MysteryMorsels950 3 жыл бұрын
I get a SSL certificate error. please help me out I try your all steps but still same error. Please help me.
@aarspainting81
@aarspainting81 2 ай бұрын
eventho you explain everthing really good i couldnt fix the ssl cython error
@Neilcourtwalker
@Neilcourtwalker 4 жыл бұрын
Thanks a lot, I'm really keen on using Kivix/Python with Buildozer! What do you think of Godot as an alternative for general app development?
@СергейБубнов-р1ъ
@СергейБубнов-р1ъ 3 жыл бұрын
Erik (or someone else who's reading it), there is no technology of virtualization on my computer, do you know some other way of creating apk file for Android without Buildozer on Windows 10 ? I would be very grateful for answer, thank you!
@ajinzrathod
@ajinzrathod 4 жыл бұрын
*Please solve my error* # Buildozer failed to execute the last command # The error might be hidden in the log above this error # Please read the full log, and search for it before # raising an issue with buildozer itself. # In case of a bug report, please add a full log with log_level = 2
@murilogiordano3201
@murilogiordano3201 4 жыл бұрын
Mee too... :(
@yoruseku
@yoruseku 4 жыл бұрын
Can anyone fix the problem?
@skaffen
@skaffen 2 жыл бұрын
Same here. Get us updated xd Did you plug the phone ?
@mohamedyahya4014
@mohamedyahya4014 4 жыл бұрын
Amazing and very very helpful tutorial keep it up. One question is how can i secure the apk from getting reverse engineering? Appreciate your time and effort.
@Maskanplaza
@Maskanplaza 4 жыл бұрын
Hello Erik I followed the steps that you did on my ubuntu 16 at the end I got error of cython SSL, I reboot my PC to work on it on another day now I can't open the terminal, can you please help me to fix it?
@VlaDOS_32
@VlaDOS_32 4 жыл бұрын
i have following errors: 1 WARNING: pip is configured with location that require TLS/SSL, however the ssl module in Python is not avalaible. 2 ERR: Could not fetch URL pypi.org/simple/cython/: there was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): max retries exceeded with url: /simple/cython (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) Someone have any sollutions or ideas?
@erik-sandberg
@erik-sandberg 4 жыл бұрын
Try running: sudo apt install libssl-dev Then you might need to do rm -rf .buildozer in the folder that contains your buildozer.spec file.
@VlaDOS_32
@VlaDOS_32 4 жыл бұрын
@@erik-sandberg ty it's worked! But i need to install Cython manually
@Setritus
@Setritus 4 жыл бұрын
Thank you for the tutorial. I am still having a few issues even after following your solid guide. Any chance you would share your VM?
@adistar-964
@adistar-964 4 жыл бұрын
how to work with internet in kivy, I always get an error in my android phone as :'urllib.error.urlerror: '
@princejamespugado6050
@princejamespugado6050 3 жыл бұрын
Hi there! I have errors: unable to locate package openjdk-8-jdk, package 'python3-pip' has no installation candidate, packagen 'libtinfo5' has no installation candidate... How to solve these? I'm a new mobile app developer..
@VBox_tuhin
@VBox_tuhin 4 жыл бұрын
i really love you bro ...thanks...i really struggling for long time thank you so much
@pixel3616
@pixel3616 3 жыл бұрын
I got error Package 'autoconf' has no installation candidate
@krishichpal7777
@krishichpal7777 3 жыл бұрын
hey i was trying to deploy an application that uses pyaudio,it kept giving me the error that it couldnt locate portaudio.h, i found out that i have to make a reciepe for pyaudio but i dont know how to do that and i couldnt find anything anywhere
@PoEAcademy
@PoEAcademy 3 жыл бұрын
Thanks for this video. Is there any solution for android app bundles?
@islamnagy9862
@islamnagy9862 4 жыл бұрын
Great tutorial 💜 I wish if you made it before a month , it would make it easier to me , Can you please make a tutorial for a kivy Bluetooth app using pygnius or able 😊 Thanks 💜,
@yoruseku
@yoruseku 4 жыл бұрын
Hello!Erik I have some problem . If my code doesn't use kivy just have pygame in it. Can it run normally? I have followed your steps but it doesn't show on my phone. I wonder whether it causes the result. Excuse. I only can speak little English.
@anishfernandes1281
@anishfernandes1281 3 жыл бұрын
I got the apk file generated but when I installed it in my phone the app crash closes..it shows loading and then closes.. I'm using kivy, kivymd and pyttsx3 packages.. Do you know why this would happen ?
@alfrednoodle1028
@alfrednoodle1028 3 жыл бұрын
Is there any purpose in changing between "apt" and "apt-get" for these installations?
@G.Hamilton
@G.Hamilton 3 жыл бұрын
really great video!! thank you very much
@osmbj1377
@osmbj1377 3 жыл бұрын
You are amazing, thanks a ton.
@mariapuigpla6922
@mariapuigpla6922 3 жыл бұрын
H Erik! Thank's for this very useful info. Any suggestions to convert .APK to .AAB This will be mandatory to upload any app to Google Play in August 2021. Thank's in advance
@vaibhavpawale9329
@vaibhavpawale9329 4 жыл бұрын
I am not getting the option of oracle 64 bit and while opening the new created oracle file its showing msg "Failed to open for the virtual machine"
@ItsHashoom
@ItsHashoom 4 жыл бұрын
same here.. any solution?
@ragibhussain5257
@ragibhussain5257 4 жыл бұрын
Go and change the virtualisation enable in your bios setting and NOTE - if you have windows 10 home edition then it does not allow virtual machine creation
@1987accessjoe
@1987accessjoe 4 жыл бұрын
Hello.. really appreciate you tutorials..they are great...learning from them...please can you make a tutorial on recycle gridview
@MohamedAlKainai
@MohamedAlKainai 4 жыл бұрын
Thank you, brother ❤️
@thefoundertremai
@thefoundertremai 2 жыл бұрын
🔥👏👏Your videos have taken me this far... Am 2years late by is there a way to do this with Windows??
@rohitvardhani9784
@rohitvardhani9784 4 жыл бұрын
While running buildozer debug it shows an error of no module name virtualenv.__main__ ; virtualenv is not a package which comes from virtualenv binary containing "from virtualenv.__main__ import run_with_catch" I dont no how to solve this .please help.
@sumankhadka3
@sumankhadka3 4 жыл бұрын
i made an app to download video from youtube and when i do logcat no error is being shown. i also gave my app all permission . When i download a video it does not show error but i cant find the video on my mobile phone.
@misbahfahamsyah7023
@misbahfahamsyah7023 3 жыл бұрын
I have problem like massive logs following: # Buildozer failed to execute the last command # The error might be hidden in the log above this error # Please read the full log, and search for it before # raising an issue with buildozer itself. # In case of a bug report, please add a full log with log_level = 2 anyone can solve this?
@ClarkKent-ls6ic
@ClarkKent-ls6ic 4 жыл бұрын
ERROR: Could not find a version that satisfies the requirement Cython (from versions: none) ERROR: No matching distribution found for Cython i am getting this error . what could be the solution ?
@YarosMallorca
@YarosMallorca 4 жыл бұрын
Same here
@WhoEvenFilms
@WhoEvenFilms 3 жыл бұрын
@@YarosMallorca @Clark Kent I have got a solution from another comment: 1 sudo apt-get update 2 sudo apt-get install libssl-dev 3 buildozer android clean Don't miss the last one, it's important. Than you should be able to execute the command "buildozer android debug deploy run". Please let me know if you fixed the problem
@YarosMallorca
@YarosMallorca 3 жыл бұрын
@@WhoEvenFilms I already fixed it a long time ago, found the solution on stack overflow, just forgot to post it here
@WhoEvenFilms
@WhoEvenFilms 3 жыл бұрын
@@YarosMallorca That's good! I'll still keep it for others who haven't found the solution, and if you can, please post the link to the stackoverflow solution
@sanjay4737
@sanjay4737 3 жыл бұрын
lld not found, linking without it. Consider installing lld if linker errors occur. so iam getting this error what should i do
@dylanjayabahu2878
@dylanjayabahu2878 4 жыл бұрын
This was pretty helpful but when I am in the virtual box and I try to create my thing (in your case, you called it android tutorial take 2), it gives me an error. This is what it says: Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE). VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} Am I doing something wrong?
@oulaoula349
@oulaoula349 4 жыл бұрын
Hello Erik Sandberg. I have not enough space on my disc when running buildozer android at the last step. But I dedicate 10 Gb for virtual memory... how adress this problem ? It turns out that almost the 10Go is already occupied... by what ?? I've just installed python and buildozer. And my main is 0.9Mo...
@erik-sandberg
@erik-sandberg 4 жыл бұрын
Try creating a new virtual machine with more memory, there are underlying components that take up some extra space
@james.1993
@james.1993 3 жыл бұрын
If I have an error in my .py file, like it's not named after main.py, should I renamed it?
@TrentonTompkins
@TrentonTompkins 3 жыл бұрын
This is what I hate - python3.6, python3.7, 3.8, 3.9, etc. Which I should I use, the one in the tutorial or the newest? Because 3.9.7 is what my Windows PC is running...
@mr.RAND5584
@mr.RAND5584 2 жыл бұрын
In creating APK How to include mysql-connector or other libraries?
@tahmidurrahmaneram
@tahmidurrahmaneram 4 жыл бұрын
can i just not do all this using wsl? I tried to do it myself, but buildozer wasn't being installed
@drorzeitoun2681
@drorzeitoun2681 4 жыл бұрын
Hello Erik, I followed your tutorial and it worked great. I'm having a problem though importing bs4 module. It's working fine on pycharm but I get in the log file - ModuleNotFoundError: no module named 'bs4'. It's included in the buildozer spec file. I looked in the internet everywhere, in some posts it's mentioned that it requires recipes but it is not so clear how to implement it. Can you advise ?..
@junhanouyang6593
@junhanouyang6593 4 жыл бұрын
Very helpful! But is it possible for you to make a video about kivy camera for both IOS and Android? And maybe potentially show us how to use kivy to open the Photo library for both the IOS app and Android? I know it's a lot to ask. But there isn't much documentation online and I am struggling to build a kivy app that interacts with camera and Photo library for the IOS app right now. I have tried the Plyer module but faced many errors that I don't know how to solve. Thanks for all the great video you make.
@MohamedAli-pf8ip
@MohamedAli-pf8ip 4 жыл бұрын
Heyy quick question. If I built an app purely using tkinter in python instead of using Kivy, will this also work?
@sidalitifoura505
@sidalitifoura505 4 жыл бұрын
i got an ERROR in the last step after waiting 1 hour LOOL
@MeowMeow-ev8tv
@MeowMeow-ev8tv 3 жыл бұрын
Hey, can you help me with my error? I keep getting errors whenever i add wav and gif to the include_exts= and also ffpyplayer in the requirements= But if dont add them my app works fine on my phone, but the audio wont load(they're all wav files) also the gif files. Any chance that you can help me? Thanks
@wyndhamwoo2851
@wyndhamwoo2851 3 жыл бұрын
I am just getting # Waiting for application to start. over and over again. Someone help me pelase.
@amateurastronomer
@amateurastronomer 4 жыл бұрын
Why did not you use the Ubuntu provided by VirtualBoX? Can we use that?
@phillcole5063
@phillcole5063 4 жыл бұрын
I tried to follow some changes happened since March Ubuntu 18.04 used is now release 20.10. Seen to work fine until the "Sudo apt-get install cython" fails Package Cython has no installation candiate.
@phillcole5063
@phillcole5063 4 жыл бұрын
buildozer.readthedocs.io/en/latest/installation.html Site and the 20.10 update install info
@lighttube4507
@lighttube4507 4 жыл бұрын
how to make a screen that comes once and disappear , which is used for signin or signup page pls
@richardknipe2733
@richardknipe2733 2 жыл бұрын
Has anyone solved the issue related to "Android NDK is missing, downloading", and the resulting "Valueerror: read of closed file"?
@ilovejeffhardy3906
@ilovejeffhardy3906 4 жыл бұрын
Hey Erik! So I almost installed everything for the android app to run but when it was almost done, it showed a lot of errors. ''ERROR: Could not find a version that satisfies the requirement Cython (from versions:none) ERROR : No matching distribution found for Cython''. I really need your help asap! thank you again Erik!
@erik-sandberg
@erik-sandberg 4 жыл бұрын
I think there's probably more to that error, but I believe it's related to not having libssl installed. Try doing `sudo apt install libssl-dev`, then you might also need to clear everything from your earlier attempts with `rm -rf .buildozer` from the directory that has your buildozer.spec file. Then try compiling the app again!
@ilovejeffhardy3906
@ilovejeffhardy3906 4 жыл бұрын
@@erik-sandberg Alrighty! I'll try, thank you again Erik!
@sc5820
@sc5820 4 жыл бұрын
I have the same problem,and i solved it,thank you so much
@ilovejeffhardy3906
@ilovejeffhardy3906 4 жыл бұрын
@@erik-sandberg Hi Erik! So I have already run the app on my android phone but the game's height got stretched(your 2D Kivy Flappy Bird
@ilovejeffhardy3906
@ilovejeffhardy3906 4 жыл бұрын
S C Did you manage to publish your app in playstore?
@Carateyu
@Carateyu 9 ай бұрын
can we use straight to the linux machine cuz i got linux laptop
@ilikememes9052
@ilikememes9052 4 жыл бұрын
Thanks for this video @erik_Sandberg. Can you please make a video on Ad integration with admob in kivy applications. Much Love from India.
@ilikememes9052
@ilikememes9052 4 жыл бұрын
Well there is now a video on KZbin about how to place admob ads on android kivy
@ilikememes9052
@ilikememes9052 4 жыл бұрын
The video is by rookie developer
@noornawaz7147
@noornawaz7147 4 жыл бұрын
Thanks Erik, can i use linux mint for it
@sarahswilem7240
@sarahswilem7240 4 жыл бұрын
I followed your tutorial and it worked thanks, but it didn't work with my app because it uses scikit-learn library. Is there any solution?
@arashputata
@arashputata 4 жыл бұрын
include -learn in the list of libraries needed in init file
@Jonnhy0989
@Jonnhy0989 2 жыл бұрын
I couldn't find the list of packages that he installed. Does anybody have the repositories? Or Am I making a mistake?
@nataliabro8084
@nataliabro8084 4 жыл бұрын
ERROR: Could not find a version that satisfied the requirement Cython (from version: none) during builozer android deploy run. Any sugestion? Thank you for helping.
@nataliabro8084
@nataliabro8084 4 жыл бұрын
cython version 0.24.1-0.4 like yours
@stevenbello5421
@stevenbello5421 4 жыл бұрын
@Erik Sandberg, please how where you able to use an android emulator for demonstration and also I am having challenges with errors related to TensorFlow even after adding it to the spec file and installing TensorFlow
@erik-sandberg
@erik-sandberg 4 жыл бұрын
I haven't used TensorFlow before so I'm not sure about how well it works on Android, you should ask the people in the Kivy Discord, they might have more knowledge. For the demonstration, I simply recorded my screen on my personal android phone then overlaid the videos.
@faxmodem2397
@faxmodem2397 4 жыл бұрын
I code with Sublime, how do I run kivy code directly this way when executing code?
@Hoptimus_Prime
@Hoptimus_Prime Жыл бұрын
If you have issues with cython not being installed... but it is follow these steps "Write in the terminal cd /bin/ && sudo gedit cython in the editor that will pop-up write cython3 $@ this will pass all the arguments from cython to cython3. Save the file and write in the terminal sudo chmod 755 cython to make it executable. To test it simply write cython It should have the same output as cython3" worked for me thanks Federico Vidoli on stackoverflow
@kingmohanad7688
@kingmohanad7688 3 жыл бұрын
i have a problem show value error : read of closed file what solve?
@kortealma3935
@kortealma3935 4 жыл бұрын
Hi! I really need your help, because I did it as you said, but I've got aidl cannot be executed' aftter some others which i could solve, but for this I couldn't find any solution on the net :(
@Jkfyr99
@Jkfyr99 3 жыл бұрын
I keep getting: runtimeerror running cythonize failed even tho I have installed cython :(
Kivy Basics in 60 MINUTES
59:02
Zenva
Рет қаралды 131 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Convert Python to Android with WINDOWS & LINUX + Fix Common Bugs
18:59
Python Simplified
Рет қаралды 234 М.
Using Python/Kivy to Mimic Popular Mobile Apps - WhatsApp
55:55
Erik Sandberg
Рет қаралды 38 М.
Zelensky Announces Talks with Russia / End of Martial Law?
13:55
NEXTA Live
Рет қаралды 1 МЛН
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 97 М.
I Made an Android App in MINUTES with This AI Tool
10:21
Creator Magic
Рет қаралды 207 М.
Android App Development in Python With Kivy
26:27
NeuralNine
Рет қаралды 296 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 561 М.
Docker Для Начинающих за 1 Час | Docker с Нуля
52:43
Как устроен PYTHON
37:44
про АйТи | IT Pro
Рет қаралды 32 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН