Emulator doesn't run with sensors

"java.lang.RuntimeException: no such class: com.google.appinventor.components.runtime.Thermometer"
I can't seem to create a thermometer.
I use a Mac, and I use the app Inventor emulator. (version 3.0)

The emulator lacks the ThermometerSensor component. You should use a physical device (connect to the companion or build an apk) to test the application.

Thank you so much!

1 Like

How do I know which sensors does the emulator has?

I do not know for sure, but I believe only the Clock and LocationSensor components are available.
You can try seeing which ones are through trial-and-error, by calling each component while connected to the Emulator, by doing something similar to this:
image

If no error is displayed, great: you can use this component!
If an error similar to the one you faced earlier is displayed (no such class [...]), then it probably cannot be used.

1 Like

This has been very useful. I truly appreciate it! :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.