System.getDeviceSettings().uniqueIdentifier not found

I have recently switch to developing on Visual Studio and my previously working app is experiencing:

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

while executing:

var mySettings = System.getDeviceSettings();
        var id = mySettings.uniqueIdentifier;
        if (id != null) {
            System.println(id); //e.g. ac915d426451c88e8ea691fa412f9af9c21b4d12
        }
Running in the emulator with SDK version 4.0.6 on a Fenix 6S. 
Has uniqueIdentifier been deprecated? This was working with SDK 4 previously.
  • Ok, 4.0.6 is from fall of 2021.  The current production SDK is 4.1.7.  So about 10 sdks since 4.0.6

    When you update the SDK, make sure you also update the devices (the second tab in the SDK Manager)

    It's working fine for me with the f6s and the 4.1.7 SDK and the 4.2.0 beta2 SDK

    Note, the newer SDKs have type checking on by default.

  • working now on 4.1.2 - thanks!

  • Ok now this is weird - My PC rebooted and since restarting Visual Studio, it behaves like before and doesn't find the uniqueID even though the SDK manager says 4.1.2 is the current SDK. Is there something broken with the extension and/or does it need to be reinstalled?

  • Ok now this is weird - My PC rebooted and since restarting Visual Studio, it behaves like before and doesn't find the uniqueID even though the SDK manager says 4.1.2 is the current SDK. Is there something broken with the extension and/or does it need to be reinstalled? Update - I guess the older SDKs aren't supported, went to 4.1.6 and 4.1.7 and everything is working.