失败:构建失败,Android Studio Flutter 中出现异常

时间:2021-04-01 02:29:01

标签: android flutter

谁能解释为什么我有这个错误?我也尝试下载 NDK,但当它完成时,它说 NDK does not contain any platforms. 非常感谢任何帮助,提前致谢。

<块引用>

这是我控制台中的错误 enter image description here

<块引用>

我的 build.gradle 也有错误 enter image description here

本地属性

enter image description here

1 个答案:

答案 0 :(得分:0)

您能否在 ndk 文件中指定 build.gradle 版本

android {
        ndkVersion '21.3.6528147'
    }

在 local.properties 中删除

ndk.dir=~/Library/Android/sdk/ndk-bundle

line 否则可能与路径冲突