简体   繁体   English

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

[英]FAILURE: Build failed with an exception in Android Studio Flutter

Can anyone explain why I have this error?谁能解释为什么我有这个错误? I tried also downloading NDK but when it finish it says NDK does not contain any platforms.我也尝试下载 NDK,但完成后它说NDK does not contain any platforms. Any help is much appreciated thanks in advance.任何帮助都非常感谢提前感谢。

This is my Error in my console这是我的控制台中的错误在此处输入图像描述

I have also error in my build.gradle我的 build.gradle 也有错误在此处输入图像描述

Local Properties本地属性

在此处输入图像描述

Can you specifying ndk version in build.gradle file你能在build.gradle文件中指定ndk版本吗

android {
        ndkVersion '21.3.6528147'
    }

And inside local.properties remove并且在 local.properties 里面删除

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

line otherwise it may conflicts with path行,否则可能与路径冲突

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM