kivy / plyer

Plyer is a platform-independent Python wrapper for platform-dependent APIs
https://plyer.readthedocs.io
MIT License
1.61k stars 427 forks source link

app crashes right after plyer.wifi.start_scanning() #421

Closed maho closed 6 years ago

maho commented 6 years ago

Hi,

I have noticed that plyer.wifi.start_scanning() crashes android app. I tried to build plyer's wifi example, with attached buildozer.spec and it crashes as in logs:https://gist.github.com/mahomahomaho/91072fc5631b1d3cd6690f68caf32a11

buildozer:

https://gist.github.com/mahomahomaho/4979e24cf90642f88ccdc92baa2b0506

KeyWeeUsr commented 6 years ago

I believe this is due to this line:

JNI DETECTED ERROR IN APPLICATION: static jfieldID 0xe85cc014 not valid for class java.lang.Class<org.renpy.android.PythonActivity>

i.e. autoclass('org.renpy.android.PythonActivity') call. Anyway, even if you used org.kivy.android.PythonActivity, the Wifi isn't implemented for android right now, therefore you'd most likely got only the facade object and for the start_scanning() call NotImplementedError.

To check whether there is an implementation either check README.md or platforms folder.