Could not find symbol 'getBatteryStatus'

Hi!

I'm just making my first steps into Connect IQ development, and I'm stumbling over an error. It's probably a typical newbie question, so maybe someone can help me out?

I created a project for a datafield. Now I'm trying to access AntPlus methods, but when running the app in the Connect IQ Device simulator, it gives me the error

Error: Symbol Not Found Error
Details: Could not find symbol 'getBatteryStatus'

This happens with every method I tested (AntPlus.getManufacturerInfo, AntPlus.getComponentIdentifiers()...).

I checked the ANT permmission in the manifest. My code includes:

using Toybox.AntPlus;
// ... sample coding:
var batteryStatus = AntPlus.getBatteryStatus(null);
var componentList = AntPlus.getComponentIdentifiers();

What am i doing wrong? Thanks!