I installed and activated the latest version 1.6.0
And the daml.yaml file did specify 1.6.0 as sdk-version
However, it complains Unrecognized daml version ‘1.6’ (expected 1.2)
And daml build will fail as well.
Could you please guide me how I can fix this?
@GuisongFu and welcome to the DAML forum.
daml <version> header is legacy syntax which is currently not used and exists only for backwards compatibility. Furthermore, it doesn’t have to match the SDK version you are using. Supported versions IIRC are 1.0 and 1.1, but they bear a different meaning than the SDK version you are using.
It’s not necessary to go into details about it, because the safe thing to do is simply to drop the header entirely.