Error when using ( withPositionUpdateInterval )

Hello

i am using the Android SDK Example for indoor positioning

when i replaced (( withScannerInForegroundService (notification)) in the code with (withPositionUpdateInterval (500L))

an error occurred :
image

anyone have an idea how to use this function ?