Runtime error: no such class (BluetoothLE)

Hi,
I'm facing a problem re-building an app from 2 years ago for a new phone with Android 15, it ran without problems on Android 10.
Building the app from the 2023 project and installing it via apk leads to it crashing when launched.
But it also crashes when being emulated through USB, where I get the following list of errors:

Error from Companion: java.lang.RuntimeException: invalid syntax in eval form: :320:1: caught exception in inliner for # - java.lang.RuntimeException: no such class: edu.mit.appinventor.ble.BluetoothLE gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:179) gnu.bytecode.ClassType.getModifiers(ClassType.java:103) gnu.bytecode.ClassType.isInterface(ClassType.java:471) gnu.expr.InlineCalls.checkType(InlineCalls.java:56) gnu.expr.InlineCalls.visit(InlineCalls.java:49) gnu.expr.InlineCalls.visitSetExpValue(InlineCalls.java:363) gnu.expr.InlineCalls.visitSetExpValue(InlineCalls.java:28)
....
gnu.expr.Language.eval(Language.java:943) gnu.expr.Language.eval(Language.java:883) gnu.expr.Language.eval(Language.java:865) com.google.appinventor.components.runtime.util.AppInvHTTPD.serve(AppInvHTTPD.java:197) com.google.appinventor.components.runtime.util.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:489) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) java.lang.Thread.run(Thread.java:1012)

The list is much longer, 2 pages A4, I've cut out a lot in the middle.

I'm not the greatest expert in all this - what might I be doing wrong? As far as I am aware there are no changes made to the project.

1 Like

What version of the BluetoothLE extension are you running? You have to use the latest version from this page.

1 Like

Thank you very much - this has fixed the issue :smiley:. I had not realised that the extension has been updated and needed to be pulled in fresh. In fact I had forgotten that I installed the extension in the first place :upside_down_face:

This question has been asked multiple times lately. Did you search the community before asking?

I did, but obviously not well enough. I saw some posts with runtime errors but was probably focusing too much on finding references to Bluetooth.