构建 flutter 项目时,在 ABI 的 NDK 工具链文件夹中找不到工具链,前缀为:arm-linux-androideabi

No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi when build flutter project

我有一段时间没有编译我的flutter项目,今天在Android Studio Arctic Fox中在macOS Big Sur上编译项目时,显示如下错误:

> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

我从google搜索,有人说插件版本应该大于3.2.1,我检查了我的com.android.tools.build:gradle版本,都大于3.2.1

我也试过删除build文件夹和pubspec.lock文件,还是没有修复。对于这个问题还有其他建议吗?

将 NDK 降级到 NDK 20.1.5948944 修复了这个问题,更多细节:https://github.com/flutter/flutter/issues/76393.