Help test Companion app bugfixes for Android 14

Hello,

when ignoring the Message Compagnion is now running!

2.71 MIT_BLE_controller12.aia on my Xiaomi Pad 6 Android 14 device is OK.

next, 2.71 -> 2.72d4 import project SIMPLEAPP_1.aia is NG.
In logcat, SIMPLEAPP_1 process will not be.
yyy.txt (3.2 MB)

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.

In the case of an empty (no extension) yyy.aia with Start new project.
yyy.txt (2.6 MB)

Hi, where is the Companion 2.72u ?

Tks in advance

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.

1 Like

I am using the testing version of companion as main was not working with android 14.

On do it by desktop it is showin Error from companion error.

Screenshot 2024-09-23 092739
Screenshot 2024-09-23 092753

This one ? Testing version 2.72d4

Yes,

This app is giving errors companion.

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.

or remove the Companion folder from the ASD of your test device, reload browser and then reconnect to Companion.

image

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.

image

At least for me this error occurs when deleting various extensions and the only way out is to reload both companion and builder..

P.S. It's not related to this version of companion as it has happened multiple times over the years.

1 Like

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.

Do you use the translator component? This can cause block editor refresh.

Yes, How to overcome this?

As of now you can't

It is a known bug. If you need it, then you have to put up with the auto refresh until bug is fixed.

It will fixed in upcoming update?