在指定的位置找不到Flutter

在指定的位置找不到Flutter

本文介绍了在指定的位置找不到Flutter SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将Android Studio更新为具有最新的Flutter和Dart插件后,现在我感到非常沮丧.现在,它告诉我未配置FLutter SDK",当我给它指定SKD路径时,它说在指定位置找不到Flutter SDK".Dart插件可以正常工作.

I'm extremely frustrated right now after I updated Android Studio to have the latest Flutter and Dart Plugins. Now it tells me "No FLutter SDK configured" and when I give it the SKD path it just says, "Flutter SDK Is Not Found In The Specified Location." The Dart plugin works fine.

我已经寻找了几个小时的答案,但没有任何效果.我已经下载了NDK,flutter doctor可以正常工作,并且我尝试将SDK路径设置为flutter文件夹(在/Documents内部)中的几乎每个文件.

I have looked for an answer for hours and nothing works. I've downloaded the NDK, flutter doctor works perfectly, and I've tried set the SDK path to pretty much every file inside my flutter folder (inside /Documents).

有什么提示吗?

推荐答案

转到-配置->工具> SDK管理器> Android SDK> SDK工具,然后搜索flutter.您将获得适用于Android的Flutter SDK.

Go to - Configure -> Tools > SDK Manager > Android SDK > SDK Tools, and search for flutter. You will get flutter SDK for Android.

如果您使用的是Visual Studio,请在Visual Studio中也安装用于flutter的插件.

If you are using Visual studio, also install plugins for flutter in Visual Studio.

»步骤:

  1. 下载Flutter SDK:此处

提取颤动:

tar xf ~/Downloads/flutter_linux_v1.7.8+hotfix.4-stable.tar.xz
  1. 特定终端的路径导出:
export PATH="$PATH:`pwd`/flutter/bin"
  1. 永久路径导出:
    打开bashrc文件:转到主目录终端-> nano〜/.bashrc
    写在文件末尾:
export PATH=" [PATH_Where_Flutter SDK Extracted] /flutter/bin:$PATH"
example: export PATH="/home/sid/0_aaa_iauro/Flutter/s/flutter/bin:$PATH"
  1. 运行以下命令以查看是否需要任何依赖项安装以完成设置:
flutter doctor -v
  1. 将Flutter扩展添加到vs代码.

  1. Add Flutter extension to vs-code.

找到Flutter SDK.

Locate Flutter SDK.

快速创建新项目:

flutter create Project_name

»重要链接:

  1. Linux安装
  2. 在Linux上使用Flutter入门适用于Android [入门教程]
  3. 如何在Ubuntu 18.04.1 LTS(仿生海狸)上安装和设置Flutter
  4. 第2部分-A:在Windows中安装Flutter –分步指南
  5. 检查路径变量(bashrc文件): Flutter –在Linux上逐步安装– Ubuntu

这篇关于在指定的位置找不到Flutter SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:13