2014-04-20 18:09:07 +02:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
Buildozer itself doesn't depend on any library, and works on Python 2.7 and >=
|
2015-10-04 12:44:29 +02:00
|
|
|
3.3. Depending the platform you want to target, you might need more tools
|
|
|
|
installed. Buildozer tries to give you hints or tries to install few things for
|
2014-04-21 08:11:35 -04:00
|
|
|
you, but it doesn't cover every situation.
|
2014-04-20 18:09:07 +02:00
|
|
|
|
|
|
|
First, install the buildozer project with::
|
|
|
|
|
|
|
|
pip install --upgrade buildozer
|
|
|
|
|
2014-04-21 08:11:35 -04:00
|
|
|
Targeting Android
|
|
|
|
-----------------
|
2014-04-20 18:09:07 +02:00
|
|
|
|
2019-07-04 00:24:47 +02:00
|
|
|
Android on Ubuntu (64bit)
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-04-21 08:11:35 -04:00
|
|
|
|
2019-07-04 00:24:47 +02:00
|
|
|
(tested on 18.04, 18.10, 19.04)
|
2018-04-29 23:35:35 +02:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
sudo apt update
|
2019-07-04 00:24:47 +02:00
|
|
|
sudo apt install -y git zip unzip openjdk-8-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5
|
|
|
|
pip3 install --user --upgrade cython virtualenv # the --user should be removed if you do this in a venv
|
2018-04-29 23:35:35 +02:00
|
|
|
|
2019-07-04 00:24:47 +02:00
|
|
|
# add the following line at the end of your ~/.bashrc file
|
|
|
|
export PATH=$PATH:~/.local/bin/
|
|
|
|
|
|
|
|
|
|
|
|
TroubleShooting
|
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Buildozer stuck on "Installing/updating SDK platform tools if necessary"
|
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
Press "y" then enter to continue, the license acceptance system is silently waiting for your input
|
|
|
|
|
|
|
|
|
|
|
|
Aidl not found, please install it.
|
|
|
|
""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
Buildozer didn't install a necessary package
|
2016-09-12 22:08:55 +03:00
|
|
|
|
|
|
|
::
|
2019-07-04 00:24:47 +02:00
|
|
|
~/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --install "build-tools;29.0.0"
|
2016-09-12 22:08:55 +03:00
|
|
|
|
2019-07-04 00:24:47 +02:00
|
|
|
Then press "y" then enter to accept the license.
|