清泛IT社区

标题: micro:bit 连接报错 [打印本页]

作者: App Inventor 2     时间: 2025-05-13 18:44
标题: micro:bit 连接报错
连接micro:bit设备的时候,找到对应的mrico:bit地址了,在连上的一瞬间后直接闪退,并且报错了。
运行故障
java.lang.ExceptionInInitializerError at edu.mit.appinventor.ble.BluetoothLEint$BLEReadOperation.subscribeBluetoothLEint.java:357) at
edu.mit.appinventor.ble.BluetoothLEintSBLEReadOperation.run(BluetoothLEint.java:325) at android.os.Handler.handleCallback(Handler.java:1013) at
android.os.Handler.dispatchMessage(Handler.java:101) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:328) at android.app.ActivityThread.main(ActivityThread.java:9236) at java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.Runtimelnit$MethodAndArgsCaller.run(Runtimelnit.java:594) at com.android.internal.os.Zygotelnit.main(Zygotelnit.java:1099) Caused by:
java.lang.IllegalArgumentException: UUID string too large at java.util.UUID.fromStringJava11(UUID.java:238) at java.util.UUID.fromString(UUID.java:226) at
edu.mit.appinventor.ble.BluetoothLEGattAttributes.<clinit>(BluetoothLEGattAttributes.java:33) ... 10 more
注意:5秒钟后将报告另一条错误信息。

(, 下载次数: 186)
(, 下载次数: 182)

作者: App Inventor 2     时间: 2025-05-13 18:59
Caused by: java.lang.IllegalArgumentException: UUID string too large  
    at java.util.UUID.fromString(UUID.java:226)

原因:ble版本太旧了,用新版本就可以解决。请使用最新编译出来的拓展(版本20240822):https://www.fun123.cn/reference/iot/bluetoothle.html

来源:https://bbs.tsingfun.com/thread-1953-1-1.html





欢迎光临 清泛IT社区 (https://bbs.tsingfun.com/) Powered by Discuz! X3.3