Skip to content

Commit 9503f5f

Browse files
RobertFlattmisl6
andauthored
Update installation.rst (#1500)
* Update installation.rst Update jdk and Ubuntu versions. Update WSL usage instructions. * Update installation.rst * Update docs/source/installation.rst Co-authored-by: Mirko Galimberti <[email protected]> * Update docs/source/installation.rst Co-authored-by: Mirko Galimberti <[email protected]> Co-authored-by: Mirko Galimberti <[email protected]>
1 parent 1a7191e commit 9503f5f

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

docs/source/installation.rst

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,49 +14,34 @@ First, install the buildozer project with::
1414
Targeting Android
1515
-----------------
1616

17-
Android on Ubuntu 20.04 (64bit)
18-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17+
Android on Ubuntu 20.04 and 22.04 (64bit)
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1919

2020
(expected to work as well in later version, but only regularly tested in the latest LTS)
2121

2222
::
2323

2424
sudo apt update
25-
sudo apt install -y git zip unzip openjdk-13-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
25+
sudo apt install -y git zip unzip openjdk-17-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
2626
pip3 install --user --upgrade Cython==0.29.19 virtualenv # the --user should be removed if you do this in a venv
2727

2828
# add the following line at the end of your ~/.bashrc file
2929
export PATH=$PATH:~/.local/bin/
30+
31+
If openjdk-17 is not compatible with other installed programs, for Buildozer the minimum compatible openjdk version is 11.
3032

31-
Android on Windows 10
32-
~~~~~~~~~~~~~~~~~~~~~
33+
Android on Windows 10 or 11
34+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
3335

34-
To use buildozer in Windows 10 you need first to enable Windows Subsystem for Linux (WSL) and install a Linux distribution: https://docs.microsoft.com/en-us/windows/wsl/install-win10.
36+
To use buildozer in Windows you need first to enable Windows Subsystem for Linux (WSL) and install a Linux distribution: https://docs.microsoft.com/en-us/windows/wsl/install.
3537

36-
These instructions were tested with WSL 1 and Ubuntu 18.04 LTS.
38+
These instructions were tested with WSL 1 and Ubuntu 18.04 LTS, and WSL2 with Ubuntu 20.04 and 22.04.
3739

38-
After installing WSL and Ubuntu in your Windows 10 machine, open Ubuntu and do this:
40+
After installing WSL and Ubuntu on your Windows machine, open Ubuntu, run the commands listed in the previous section, and restart your WSL terminal to enable the path change.
3941

40-
1) Run the commands listed on the previous section (Android in Ubuntu 18.04 (64-bit).
41-
2) Run the following commands:
42+
Copy your Kivy project directory from the Windows partition to the WSL partition, and follow the Quickstart Instructions. **Do not** change to the project directory on the Windows partition and build there, this may give unexpected and obscure fails.
4243

43-
::
44-
45-
# Use here the python version you need
46-
sudo apt install -y python3.7-venv
47-
# Create a folder for buildozer. For example: C:\buildozer
48-
mkdir /mnt/c/buildozer
49-
cd /mnt/c/buildozer
50-
python3.7 -m venv venv-buildozer
51-
source venv/bin/activate
52-
python -m pip install --upgrade pip
53-
python -m pip install --upgrade wheel
54-
python -m pip install --upgrade cython
55-
python -m pip install --upgrade virtualenv
56-
python -m pip install --upgrade buildozer
57-
# Restart your WSL terminal to enable the path change
58-
59-
Windows Subsystem for Linux does not have direct access to USB. Due to this, you need to install the Windows version of ADB (Android Debug Bridge):
44+
For debugging, WSL does not have direct access to USB. Copy the .apk file to the Windows partition and run ADB (Android Debug Bridge) from a Windows prompt. ADB is part of Android Studio, if you do not have this installed you can install just the platform tools which also contain ADB.
6045

6146
- Go to https://developer.android.com/studio/releases/platform-tools and click on "Download SDK Platform-Tools for Windows".
6247

0 commit comments

Comments
 (0)