Buildozer create android app

lufy
January 21, 2022

1. wget failed cause of unstable connection to: https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip 


Resolved: edit ./.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sqlite3/__init__.py, change the url to http://lufy.org:20081/tools/sqlite-amalgamation-3350500.zip 


2. pip found no openssl package when cross building


Resolved: edit ./.buildozer/android/platform/python-for-android/pythonforandroid/build.py, change build.py, change module name to pyopenssl when openssl met.


3. Cython met not find available version


Resolved: install libffi-devel and rebuild python


4. Needed packages:


wget
java
java-1.8.0-openjdk-devel
patch
gcc
make
autoconf
automake
libtool
lld
libffi-devel
python3
zlib-devel
sqlite
nss-devel
openssl-devel
zip


5. Build commands:


buildozer --profile demo android clean


buildozer --profile demo android debug


 

Comments (0)

Leave a Comment
Maximum 1000 characters

No comments yet. Be the first to comment!