Thank you very much, Robert!
After building the apk on Google Colab(Ubuntu 20.04.5 LTS, Python 3.10.11) with the following steps, it opened successfully!
(I removed "cython==0.29.xx" from the buildozer.spec requirements)
!sudo apt update
!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
!pip3 install --upgrade Cython==0.29.33 virtualenv
!export PATH=$PATH:~/.local/bin/
!python -m pip install --upgrade pip
!pip install buildozer==1.5.0
!buildozer init
!buildozer -v android debug
However, when I added "
pycryptodome==3.7.3" to the requirements in buildozer.spec, I got the following
error when building with Buildozer:
[INFO]: Building cffi for armeabi-v7a [INFO]: cffi apparently isn't already in site-packages
[INFO]: Building compiled components in cffi
[INFO]: -> directory context
/content/xxx/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/cffi/armeabi-v7a__ndk_target_28/cffi
:
[DEBUG]:
2 warnings and 2 errors generated.
[DEBUG]:
error:
command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
Exception in thread background thread for pid 51966:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN:
/content/xxx/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3
setup.py build_ext -v
I tried adding "cffi==1.13.2" to requirements but got the same error.
2023年6月8日木曜日 10:55:09 UTC+9 Robert: