import ssl
buildozer android debug
As said at the beginning, everyone looks fine
[DEBUG]: BUILD SUCCESSFUL in 2s
[DEBUG]: 25 actionable tasks: 5 executed, 20 up-to-date
[INFO]: <- directory context /Users/robin/Desktop/TestB/.buildozer/android/platform/python-for-android
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: myapp: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (armeabi-v7a)
[INFO]: myapp has compatible recipes, using this one
[INFO]: # Copying android package to current directory
[INFO]: # Android package filename not found in build output. Guessing...
[INFO]: # Found android package file: /Users/robin/Desktop/TestB/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/build/outputs/apk/debug/myapp__armeabi-v7a-debug.apk
buildozer android logcat
Here comes the trouble
01-26 20:12:24.635 15154 15178 I python : Initializing Python for Android
01-26 20:12:24.635 15154 15178 I python : Setting additional env vars from p4a_env_vars.txt
01-26 20:12:24.635 15154 15178 I python : Changing directory to the one provided by ANDROID_ARGUMENT
01-26 20:12:24.635 15154 15178 I python : /data/user/0/org.test.myapp/files/app
01-26 20:12:24.635 15154 15178 I python : Preparing to initialize python
01-26 20:12:24.635 15154 15178 I python : _python_bundle dir exists
01-26 20:12:24.635 15154 15178 I python : calculated paths to be...
01-26 20:12:24.635 15154 15178 I python : /data/user/0/org.test.myapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.myapp/files/app/_python_bundle/modules
01-26 20:12:24.635 15154 15178 I python : set wchar paths...
01-26 20:12:24.667 3124 3166 I ActivityManager: Displayed org.test.myapp/org.kivy.android.PythonActivity: +299ms
01-26 20:12:24.667 3124 3166 D DPerf : DPerf module initialized
01-26 20:12:24.668 548 548 W /system/bin/hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@2.0::IIop/default in either framework or device manifest.
01-26 20:12:24.668 3124 3166 E ANDR-PERF-JNI: Iop tryGetService failed
01-26 20:12:24.668 3124 3166 D SmartisanLaunch: cold launch: package:org.test.myapp activity:org.test.myapp/org.kivy.android.PythonActivity start_time:86622608 end_time:86622939 duration:331ms
01-26 20:12:24.670 15154 15154 V SDL : onWindowFocusChanged(): true
01-26 20:12:24.670 15154 15178 I python : Initialized python
01-26 20:12:24.670 15154 15178 I python : AND: Init threads
01-26 20:12:24.671 15154 15178 I python : testing python print redirection
01-26 20:12:24.672 15154 15178 I python : Android path ['.', '/data/user/0/org.test.myapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.test.myapp/files/app/_python_bundle/modules', '/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages']
01-26 20:12:24.672 15154 15178 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/QPerformance.jar:/system/framework/DPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/legacy-test.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/smartisanos.jar:/system/framework/sys-framework.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar:/system/framework/smartisan-services-tnt.jar:/system/framework/sys-services.jar', 'ANDROID_SOCKET_zygote_secondary': '8', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.test.myapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.test.myapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.test.myapp/files', 'ANDROID_UNPACK': '/data/user/0/org.test.myapp/files/app', 'PYTHONHOME': '/data/user/0/org.test.myapp/files/app', 'PYTHONPATH': '/data/user/0/org.test.myapp/files/app:/data/user/0/org.test.myapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
01-26 20:12:24.672 15154 15178 I python : Android kivy bootstrap done. __name__ is __main__
01-26 20:12:24.672 15154 15178 I python : AND: Ran string
01-26 20:12:24.672 15154 15178 I python : Run user program, change dir and execute entrypoint
01-26 20:12:24.689 15154 15178 I python : Traceback (most recent call last):
01-26 20:12:24.689 15154 15178 I python : File "/Users/robin/Desktop/TestB/.buildozer/android/app/main.py", line 1, in <module>
01-26 20:12:24.689 15154 15178 I python : File "<frozen zipimport>", line 259, in load_module
01-26 20:12:24.689 15154 15178 I python : File "/Users/robin/Desktop/TestB/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Lib/ssl.py", line 98, in <module>
01-26 20:12:24.689 15154 15178 I python : ModuleNotFoundError: No module named '_ssl'
01-26 20:12:24.689 15154 15178 I python : Python for android ended.
I've tried some of the things I found online but with no success:
Have a good day!