Questions tagged [python-for-android]
49 questions
7
votes
1 answer
How to create custom recipe for dlib library for p4a
The code below successfully creates libdlib.so and copies it to .buildozer/android/platform/build-armeabi-v7a/build/libs_collections//armeabi-v7a also this file is located in the apk itself along the path…

Ne1zvestnyj
- 1,391
- 1
- 7
- 25
6
votes
1 answer
No module named 'kivy.graphics.instructions' while trying to use kivy master
My app works well while using kivy==2.0.0 and kivymd, but it doesn't display numeric keyboard in android devices.
So as I investigated,I've got to use master branch of kivy to solve this issue.Now when I run the app with master branch I receive this…

taha kalaee
- 133
- 5
4
votes
3 answers
Storage Access Framework in Python
I have this small application and I'd like
to rewrite it to use more privacy-friendly best practices, such as the Storage Access Framework.
How to do it in Python (Kivy)? I searched the web and haven't found any tutorial or examples with Python. I…

xralf
- 3,312
- 45
- 129
- 200
3
votes
1 answer
Generating a python library from c++ for android (arm) - maybe with swig?
I want to include a c++-library in my kivy python app. It is possible to automatically do that with swig and distutils, which effectively generates a .pyd python library out of the c++ code. On windows that works without any problems: I included…

simonsays
- 81
- 5
2
votes
1 answer
pygame fails to load fonts in kivy on android
I am trying to load some font files in pygame on android(using kivy), but it resulted in an error that possibly implies the file path has some problems.
Line 52 of main.py:
font = pygame.font.Font(os.path.join('assets', 'font.ttf'), 39)
The font is…

adam_Barfi
- 45
- 4
2
votes
0 answers
Is it possible to use python and kotlin to build android project?
I'm building an android application and I have some scripts in python I want to use (and not to translate) in this very project.
Right now I'm using 'Chaquopy' to make it work but I dont like the SDK it self, sometimes it crushes my app, and it…

מגן לוי
- 49
- 1
- 7
2
votes
1 answer
How can I clean a buildozer custom recipe build?
I have a buildozer project that has custom python-for-android recipes in the directory p4a/recipes/.
One of my recipes needs some debugging, and I don't want to rebuild python and all these other programs every time I want to rebuild it.
I've tried…

Aur Saraf
- 3,214
- 1
- 26
- 15
1
vote
1 answer
Fatal signal 11 (SIGSEGV) App Crash on Android Device
whenever I open my kivy app it freezes on a black screen and then crashes... has anyone experienced this issue?
LOGS
2023-04-17 19:45:10.737 21265-21307 libc org.test.myapp A Fatal signal 11 (SIGSEGV), code…

NotMicah
- 11
- 2
1
vote
0 answers
Python for Android Mediapipe Import Error: Wrong Build Version
I successfully build a python kivy app for android on my Ubuntu system which makes use of opencv and mediapipe. However, when runnning the app I get the following error in logcat:
ImportError: dlopen failed:…

Muleque
- 71
- 2
- 12
1
vote
1 answer
NDK version conflict in buildozer for Kivy app
I am trying to build a kivy app that has these requirements in buildozer.spec:
requirements = python3,kivy,pillow,plyer,scipy,numpy
all Android (SDK/NDK, API) settings are defaulted (commented)
One run w/o specifying NDK gives:
[INFO]: <-…

monok
- 494
- 5
- 16
1
vote
0 answers
Buildozer requires a python-for-android version with AAB (Android App Bundle) support
I'm having this error when I run buildozer:
This buildozer version requires a python-for-android version with AAB (Android App Bundle) support. Please update your pinned version accordingly.
But both my buildozer and my python-for-android are up to…

flowerboy
- 81
- 7
1
vote
1 answer
python service foreground can't open the app but instead gets stuck in a black screen
Hello guys i have this minimal code where the issue is generated:
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.widget import Widget
from kivy.uix.screenmanager import ScreenManager, Screen,…

Oussama
- 76
- 11
1
vote
1 answer
Buildozer could not find a version that satisfies the requirement threading
Im trying to build my android app on buildozer but i get this error. I think buildozer can't download or can't find the threading module I researched about the error but couldn't find the solution. Can anyone help me please?
I started the building…

Aiakon
- 43
- 6
1
vote
0 answers
Cannot find a recipe for grpcio and firebase-admin for kivy-ios or python-for-android
Does anyone know a recipe for grpcio and firebase-admin on kivy-ios?
Thanks for the time consideration.

Success
- 13
- 4
1
vote
1 answer
Buildozer not using correct kivy version when packaging for android
I am having a couple of problems packaging my Kivy app for android which may, or may not be related:
The only packages my app imports other than Kivy, are the time, and math modules. When I add either or both of them to the requirements in the…

Louis George
- 33
- 6