When running the adb devices command, if you're getting a "no permissions" error message like below:
buildozer android adb -- devices
...
List of devices attached
???????????? no permissions
Update your udev rules, there's an example to adapt to your Android device here:
sudo cp root/etc/udev/rules.d/51-android.rules /etc/udev/rules.d/
Then replug your device and rerun the command.
When running the adb devices command, if you're getting a "unauthorized" error message like below:
buildozer android adb -- devices
...
List of devices attached
X9LDU14B18003251 unauthorized
Then you simply need to allow your dev computer from your Android device.
Buildozer fails with the error below when installing dependencies:
urllib.error.URLError: <urlopen error unknown url type: https>
First install libssl-dev
:
sudo apt install libssl-dev
Then clean openssl recipe build and retry:
buildozer android p4a -- clean_recipe_build openssl
buildozer android debug
Buildozer fails when building libffi:
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
Fix it by installing autogen autoconf and libtool:
sudo apt install autogen autoconf libtool
Buildozer fails with when building cffi:
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
See upstream ticket: kivy/python-for-android#1148
buildozer android p4a -- apk --private $PWD/src/ --local-recipes $PWD/src/python-for-android/recipes/ --package=com.github.andremiras --name PyWallet --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy
buildozer android adb -- uninstall com.github.andremiras.pywallet