Closed randdvorak closed 1 year ago
Changing buildozer.spec with the following solved the issue and I was able to run on the emulator.
android.archs= arm64-v8a, x86_64
Seems, building for the singular arch x86_64 is not correct.
If you're building an apk for distribution, a universal binary is needed, so the solution for only building for arch x86_64 amounts to: "Don't do that"
Hi @randdvorak !
Can you post the full log? Can you share the config of the emulator?
Yeah, sorry that log is long gone. I got it working(see comment) and didn't look back.
Seems, building for the singular arch x86_64 is not correct.
This is correct and feasible, so we may have an issue here. Feel free to share your emulator config and the full (runtime) log, as it may be super-helpful.
Closing for inactivity. If the issue persists and looks like a bug to you, please re-open a new issue.
Otherwise, if you need some help, feel free to join us on Discord.
Hi @randdvorak !
Can you post the full log? Can you share the config of the emulator?
Logcat detail
05-22 01:18:54.783 7950 10932 I python : Initializing Python for Android
05-22 01:18:54.783 7950 10932 I python : Setting additional env vars from p4a_env_vars.txt
05-22 01:18:54.785 7950 10932 I python : Changing directory to the one provided by ANDROID_ARGUMENT
05-22 01:18:54.785 7950 10932 I python : /data/user/0/org.test.baseconverter/files/app
05-22 01:18:54.789 7950 10932 I python : Preparing to initialize python
05-22 01:18:54.790 7950 10932 I python : _python_bundle dir exists
05-22 01:18:54.790 7950 10932 I python : calculated paths to be...
05-22 01:18:54.790 7950 10932 I python : /data/user/0/org.test.baseconverter/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.baseconverter/files/app/_python_bundle/modules
05-22 01:18:54.802 7950 10932 I python : set wchar paths...
05-22 01:18:55.062 7950 10932 I python : Initialized python
05-22 01:18:55.062 7950 10932 I python : AND: Init threads
05-22 01:18:55.065 7950 10932 I python : testing python print redirection
05-22 01:18:55.068 7950 10932 I python : Android path ['.', '/data/user/0/org.test.baseconverter/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.test.baseconverter/files/app/_python_bundle/modules', '/data/user/0/org.test.baseconverter/files/app/_python_bundle/site-packages']
05-22 01:18:55.068 7950 10932 I python : os.environ is environ({'PATH': '/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'ANDROID_ART_ROOT': '/apex/com.android.art', 'ANDROID_I18N_ROOT': '/apex/com.android.i18n', 'ANDROID_TZDATA_ROOT': '/apex/com.android.tzdata', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/smartbondingservice.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/knoxsdk.jar:/system/framework/drutils.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/SmpsManager.jar:/system/framework/uibc_java.jar:/system/framework/ICDVerification.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-base.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar', 'DEX2OATBOOTCLASSPATH': '/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/smartbondingservice.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/knoxsdk.jar:/system/framework/drutils.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/SmpsManager.jar:/system/framework/uibc_java.jar:/system/framework/ICDVerification.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-base.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/ssrm.jar:/system/framework/semwifi-service.jar:/apex/com.android.permission/javalib/service-permission.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_SOCKET_zygote': '17', 'ANDROID_SOCKET_usap_pool_primary': '21', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.test.baseconverter/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.test.baseconverter/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.test.baseconverter/files', 'ANDROID_UNPACK': '/data/user/0/org.test.baseconverter/files/app', 'PYTHONHOME': '/data/user/0/org.test.baseconverter/files/app', 'PYTHONPATH': '/data/user/0/org.test.baseconverter/files/app:/data/user/0/org.test.baseconverter/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'KIVY_ORIENTATION': 'Portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
05-22 01:18:55.069 7950 10932 I python : Android kivy bootstrap done. name is main
05-22 01:18:55.069 7950 10932 I python : AND: Ran string
05-22 01:18:55.069 7950 10932 I python : Run user program, change dir and execute entrypoint
05-22 01:18:55.497 7950 10932 I python : [INFO ] [Logger ] Record log in /data/user/0/org.test.baseconverter/files/app/.kivy/logs/kivy_23-05-22_1.txt
05-22 01:18:55.498 7950 10932 I python : [INFO ] [Kivy ] v2.0.0
05-22 01:18:55.499 7950 10932 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.test.baseconverter/files/app/_python_bundle/site-packages/kivy/init.pyc"
05-22 01:18:55.499 7950 10932 I python : [INFO ] [Python ] v3.9.9 (main, May 14 2023, 01:53:55)
05-22 01:18:55.499 7950 10932 I python : [Clang 14.0.6 (https://android.googlesource.com/toolchain/llvm-project 4c603efb
05-22 01:18:55.500 7950 10932 I python : [INFO ] [Python ] Interpreter at ""
05-22 01:18:55.508 7950 10932 I python : [INFO ] [KivyMD ] v0.104.1
05-22 01:18:55.525 7950 10932 I python : [INFO ] [Factory ] 186 symbols loaded
05-22 01:18:55.539 7950 10932 I python : Traceback (most recent call last):
05-22 01:18:55.540 7950 10932 I python : File "/mnt/c/Users/USER/Downloads/B2D/.buildozer/android/app/main.py", line 5, in
Please help me 🙏
Versions
Description
Built apk successfully, but experienced runtime error: ModuleNotFoundError: No module named 'kivy._clock'. Kivy was indeed built, but seemingly is absent:
buildozer.spec
Command:
Dockerfile:
Logs