Getting error: failed to download `solana-frozen-abi v1.9.9` while running anchor test on macbook m1

Getting error: failed to download `solana-frozen-abi v1.9.9` while running anchor test on macbook m1

伙计们,当我在 macbook m1 上进行 运行 锚点测试时,我遇到了这个错误。有没有人解决这个问题。


BPF SDK: /Users/dhruvjain/solana/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: failed to download `solana-frozen-abi v1.9.9`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/Users/dhruvjain/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-frozen-abi-1.9.9/Cargo.toml`

Caused by:
  feature `edition2021` is required

  consider adding `cargo-features = ["edition2021"]` to the manifest 

我发现我可能有旧的锈迹或货物版本。但它们似乎是最新的。

rustc 1.59.0 (9d1b2106e 2022-02-23)

货运版

 cargo 1.59.0 (49d8809dc 2022-02-10)

我 运行 cargo clean 但我仍然遇到同样的错误。谁能帮我解决这个问题。

什么 solana 版本?

solana -V

确保您正在运行 1.9.9

sh -c "$(curl -sSfL https://release.solana.com/v1.9.9/install)"