Android Kivy app crashes immediately

1,000 views
Skip to first unread message

Ray A

unread,
Oct 5, 2017, 7:22:34 PM10/5/17
to kivy-...@googlegroups.com
Hello All,

I have developed a very simple app with Kivy, KivyMD, and SQLalchemy. It runs perfectly fine on my computer (windows 10, python 3.6.2, Pycharm IDE) and I used Buildozer VM 2.0 (buildozer 0.33) to build the APK file. Everything went as planned without any issue but the app crashes immediately after running on my android phone. I changed the phone and ran it on another android phone to make sure the problem isn't with my phone. No luck.

Unfortunately I am very new at this and can't figure it out on my own. I was wondering if any of you could help me figure this issue out.

I have attached my bug report as well as my logcat.txt  & buildozer.spec file as well.

Please help!
buildozer.spec
bugreport.zip
logcat.txt

Alexander Taylor

unread,
Oct 5, 2017, 8:15:06 PM10/5/17
to Kivy users support
Is this a bug report from the 'Take bug report' developer option on the device? It contains much more information than is necessary here, could you use adb logcat (see https://kivy.org/docs/guide/android.html#debugging-your-application-on-the-android-platform) to post the text of the log when your app runs/crashes?

Ray A

unread,
Oct 5, 2017, 10:29:14 PM10/5/17
to Kivy users support
You're right. I took the report from the "Take bug report".

I followed the instructions as the link and here was the out put attached.

Thanks.
logcat2.txt

Ray A

unread,
Oct 6, 2017, 11:11:16 PM10/6/17
to Kivy users support
Alex, no luck?

Alexander Taylor

unread,
Oct 8, 2017, 7:29:07 AM10/8/17
to Kivy users support
It looks like everything is running fine, so you can see the normal python error by looking for lines with the string 'python'. The traceback is the following:

0-05 22:22:01.853  5913  5949 I python  :  Traceback (most recent call last):
10-05 22:22:01.853  5913  5949 I python  :    File "/home/kivy/myprojects/Xeegma3/.buildozer/android/app/main.py", line 8, in <module>
10-05 22:22:01.853  5913  5949 I python  :    File "/home/kivy/myprojects/Xeegma3/.buildozer/android/app/connected.py", line 3, in <module>
10-05 22:22:01.854  5913  5949 I python  :    File "/home/kivy/myprojects/Xeegma3/.buildozer/android/app/navigationdrawer/__init__.py", line 5, in <module>
10-05 22:22:01.854  5913  5949 I python  :  ImportError: cannot import name ElevationBehavior
10-05 22:22:01.880  5913  5949 I python  : Python for android ended.

I don't know what is supposed to provide ElevationBehavior, but you can look into this to debug the problem.
Reply all
Reply to author
Forward
0 new messages