Thanks for this guidance. Without it I would have spent weeks or months getting this far.
I used fpcupdeluxe to install fpc + Lazarus + LAMW into an Android folder in my user folder. I could not compile without an error so followed these instructions.
When I got to the point below, fpcupdeluxe had already created a tools folder.
My question is: should there be a tools/cmdline-tools folder or a cmdline-tools/tools folder or both?
# download and extract Android SDK Command Line Tools for Linux
# from https://developer.android.com/studio/#downloads
mkdir -p "$HOME/android/sdk/cmdline-tools"
cd "$HOME/android/sdk/cmdline-tools"
wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip"
unzip "commandlinetools-linux-7302050_latest.zip"
rm "commandlinetools-linux-7302050_latest.zip"
mv cmdline-tools tools