Plyer GPS doesn't work on Android 12

762 views
Skip to first unread message

grnmtns

unread,
Feb 9, 2022, 3:28:19 PM2/9/22
to Kivy users support
Hi, I developed a navigation app with kivy using plyer.gps. Everything worked fine until my phone updated to Android 12.

The app doesn't crash, but I get no GPS positions now. Looking at the log, this seems to be the problem:

 ===== Python/java method missing ======
Python class:<plyer.platforms.android.gps._LocationListener object at 0xc79a7588>
Java method name:onLocationChanged
Signature: (Ljava/util/List;)V
=======================================
Traceback (most recent call last):
File "jnius/jnius_proxy.pxi", line 50, in jnius.jnius.PythonJavaClass.invoke
File "jnius/jnius_proxy.pxi", line 74, in jnius.jnius.PythonJavaClass._invoke
NotImplementedError: The method ('onLocationChanged', ('V', ('Ljava/util/List;',))) is not implemented

Any tips on how to fix this?

Thanks!

Robert

unread,
Feb 9, 2022, 3:51:39 PM2/9/22
to Kivy users support

There is a short discussion on Discord today about this  https://discord.com/channels/423249981340778496/423250272316293120/940953685192761354
Its basically 'fix your copy', but it appears to be confusing the OP.

Looks to be api 31 related. Try building with api 30.

grnmtns

unread,
Feb 9, 2022, 4:15:32 PM2/9/22
to Kivy users support
Thanks, I didn't see the Discord discussion. I'll try those fixes.
Reply all
Reply to author
Forward
0 new messages