Problem with elevation not working on android and returns strange error. Kivy/KivyMD

109 views
Skip to first unread message

Hugo Cezar

unread,
Dec 28, 2022, 10:42:56 AM12/28/22
to Kivy users support
When creating a simple application that has only one MDFloatingActionButton on the screen it works perfectly on linux/windows but when compiling for android the application closes instantly and returns a strange error. I did a test with MDCard and it returned the same error but I decided to assign to the widget's elevation attribute and it worked perfectly but without the elevation.

main.py

from kivymd.app import MDApp
from kivymd.uix.button import MDFloatingActionButton

class MyApp(MDApp):
    def build(self):
        return MDFloatingActionButton( pos_hint={"center_y":.5, "center_x":.5})
MyApp().run() 

Return on android

12-27 15:10:59.874 15425 15425 F DEBUG : #06 pc 00006f0b /data/data/org.myapp.test/files/app/_python_bundle/site-packages/kivy/graphics/vbo.so

This problem is linked to the elevation of the widget, which is the ideal attribute to make the app more attractive.

Can someone give me a light to solve this problem? I am using windows wsl to build the application.



Robert

unread,
Dec 28, 2022, 12:08:10 PM12/28/22
to Kivy users support
Perhaps its the same issue as this https://github.com/Android-for-Python/Android-for-Python-Users#kivy-is-too-old
Try the first option
Reply all
Reply to author
Forward
0 new messages