bleak icon indicating copy to clipboard operation
bleak copied to clipboard

Getting error when opening app

Open K9Developer opened this issue 3 years ago • 1 comments

  • bleak version: 0.14.2
  • Python version: 3.9
  • Operating System: Windows 10
  • BlueZ version (bluetoothctl -v) in case of Linux:

Description

When I ran this example code in android (after creating apk) it crashes and the error is: jnius.jnius.JavaException: JVM exception occurred: Didn't find class "com.github.hbldh.bleak.PythonScanCallback" on path: DexPathList[[zip file "/data/app/~~b7NgmLRCBi8FbUEPlr9MzA==/org.test.onaircontroller-wjkGxsX012XeAIzx8Fsv_g==/base.apk"],nativeLibraryDirectories=[/data/app/~~b7NgmLRCBi8FbUEPlr9MzA==/org.test.onaircontroller-wjkGxsX012XeAIzx8Fsv_g==/lib/arm64, /data/app/~~b7NgmLRCBi8FbUEPlr9MzA==/org.test.onaircontroller-wjkGxsX012XeAIzx8Fsv_g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]] java.lang.ClassNotFoundException

What I Did

Downloaded https://github.com/hbldh/bleak/tree/develop/examples/kivy and then ran buildozer android debug then moved it to my phone, than I connected the phone to my PC and ran adb logcat *:S python:D to show all python logs. I opened the app and then it crashed showing this error.

EDIT: I need the answer pretty quickly.

K9Developer avatar May 04 '22 18:05 K9Developer

Did you clone the entire source code repository or only that example directory? The full source code directory is needed.

dlech avatar Jul 13 '22 20:07 dlech