I downloaded the example code of the flutter all_bluetooth repro. from GitHub: https://github.com/rans-rans/all_bluetooth/tree/master/lib
The code compiles and I can connect a Bluetooth device but I can not send or receive code.
The debug window shows an initialization error:
E/flutter (20020): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, lateinit property sendReceive has not been initialized, null, kotlin.UninitializedPropertyAccessException: lateinit property sendReceive has not been initialized
It locks like a uninitialized variable (sendReceive) but I can’t find this var in the code.
As I use OpenJDK 17 I thought it could be a conflict with the gradle (gradle-7.3) version (compatibility table: https://docs.gradle.org/current/userguide/compatibility.html , but I couldn’t find an issue.
As mentioned the code compiles without any error (The error shows when data is sent what never arrives).
Thanks for help
Martin
drumanart is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.