08-20 01:04:26.663 24464 24464 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: UUID string too large
08-20 01:04:26.663 24464 24464 E AndroidRuntime: at java.util.UUID.fromStringJava11(UUID.java:238)
08-20 01:04:26.663 24464 24464 E AndroidRuntime: at java.util.UUID.fromString(UUID.java:226)
08-20 01:04:26.663 24464 24464 E AndroidRuntime: at edu.mit.appinventor.ble.BluetoothLEGattAttributes.<clinit>(BluetoothLEGattAttributes.java:33)
08-20 01:04:26.663 24464 24464 E AndroidRuntime: ... 10 more
This error suggests that you need to upgrade your BLE extension to version 20240822. There was an error in one of the UUIDs that was silently ignored on earlier versions of Android but now is enforced with Android 14.
Thank you. I loaded Companion 2.72d4 and Updated the BLE extension and now the app works with Companion. I'll try building an apk an test that next.
I really appreciate the prompt reply.
I removed extension and companion is working good, after few times I ate lunch and try to reconnect it works good with no extension in project name application info and on the third attempt of connection it will giving me error, I am confused why not give error in first and second connect and what the app wale up after the twice successful attempts of connection.
This looks like you did not fully reload the companion after deleting an extension, but for a clean break, follow Anke's advice, and clear out your comnpanion app ASD.
Companion is also refreshing when editing blocks also, Please add a option in the ai2 builder that to on or off the auto refreshing of the companion on designer changes or also on block level changes while connected,
This will hel users to choose and don't get disturb by auto refresh companion while changing in blocks editor section.
Companion 2.72u disconnects, if I "do something else", on the mobile device or emulator.
For example, if I use the companion app to load a project which can download a file, once the file is downloaded I switch to the device file manager to find the file. Invariably, the companion disconnects. This has nothing to do with the project activity, it is the very action of leaving the companion app to do something else on the device.
I see this on Android 13 and Android 14 devices (Google Pixel) and also with Android 12 (Pixel 3XL) using Genymotion Emulator. Host is Xubuntu 22.04 LTS with Chrome browser.
You could try legacy mode in that case. WebRTC has a keep-alive and if the app is in the background inevitably Android will stop that from running and the browser will think the connection is dead since the app isn't responding.