Jared
Jared

Reputation: 2217

Flutter SDK Is Not Found In The Specified Location

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.

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).

Any tips?

Upvotes: 3

Views: 21299

Answers (4)

mx1up
mx1up

Reputation: 1124

in my case, it was caused by local changes to the flutter git repo. On command line, everything worked, but in Android Studio it failed to detected the flutter sdk which caused all flutter commands to fail (even though flutter bin dir is in my path). The local changes were probably caused by trying out the beta version of flutter and returning to stable afterwards.

solution: delete flutter dir and redownload (I actually reverted all changes using the git clean command)

Upvotes: 0

Dien Vu
Dien Vu

Reputation: 51

What happen to me was because there is a space in my android sdk path (which is my username). I copy to C:\android\sdk and problem gone. Probably the space cause issue to NDK thus affect to Flutter sdk.

Upvotes: 0

Sid khore
Sid khore

Reputation: 21

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

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

» Steps:

  1. Download Flutter SDK: Here

  2. Extract Flutter:

tar xf ~/Downloads/flutter_linux_v1.7.8+hotfix.4-stable.tar.xz
  1. Path export for particular terminal:
export PATH="$PATH:`pwd`/flutter/bin"
  1. Permanent Path export:
    Open bashrc file: Go to home directory terminal -> nano ~/.bashrc
    Write at end of file:
export PATH=" [PATH_Where_Flutter SDK Extracted] /flutter/bin:$PATH"
example: export PATH="/home/sid/0_aaa_iauro/Flutter/s/flutter/bin:$PATH"
  1. Run the following command to see if there are any dependencies you need to install to complete setup:
flutter doctor -v
  1. Add Flutter extension to vs-code.

  2. Locate Flutter SDK.

  3. Make New project in flutter:

flutter create Project_name

» Important Links:

  1. Linux Install
  2. Getting Started with Flutter on Linux for Android [Beginner Tutorial]
  3. How To Install And Setup Flutter On Ubuntu 18.04.1 LTS (Bionic Beaver)
  4. Part 2-A: Install Flutter in Windows – Step by Step Guide
  5. Check for path variable (bashrc file): Flutter – Step by Step Installation on Linux – Ubuntu

Upvotes: 2

Vilmir
Vilmir

Reputation: 1330

If you are using a fresh new Android Studio install as me, try installing missing packages for SDK support in Android Studio as described here: https://ladwhocodes.blogspot.com/2019/02/fix-flutter-sdk-not-found-in-specified-location.html

Go to Menu > Tools > SDK Manager > Android SDK (left side of the dialog) > SDK Tools (tab). Select 'Support Repository' and 'NDK' checkboxes. Click OK. It will prompt you to install some dependencies. Install them.

Upvotes: 0

Related Questions