to use the init_if_needed feature, i put in my Cargo.toml:
[dependencies]
anchor-lang = { version = "0.25.0", features = [ "init_if_needed" ] }
anchor-spl = "0.24.2"
mpl-token-metadata = { version = "1.2.5", features = [ "no-entrypoint" ] }
and get anchor build error:
error: failed to select a version for `anchor-lang`.