Flutter SDK is not found in the specified location - in Android Studio

后端 未结 6 1013
一生所求
一生所求 2020-12-16 17:42

I am installing Flutter and everything is good exept one thing, specified above.

Flutter doctor says this:

$ flutter doctor -v

[√] Flutter (C         


        
相关标签:
6条回答
  • 2020-12-16 17:44
    1. create an android project and see everything works fine.
    2. if Gradle sync problem with kotline : File -> Settings -> Kotlin Compiler -> Target JVM Version Changing to 1.8 fixed the issue.

    If everything run fine as android project then proced:

    1. File -> Settings ->Languages & frameworks->Flutter.
    2. select flutter sdk path as src\flutter and ok
    3. if step 4 not works then select path src\flutter\bin;

    Note:if android 10.0 not work then try it with 9.0;

    0 讨论(0)
  • 2020-12-16 17:49

    You can set the Flutter SDK path in two ways.

    1. When you are creating a project, then you are asked to set the flutter SDK path, there you can set the path of it.

    1. If you have move your flutter SDK somewhere after create the project and then if you want to change the path, then you can do it like this

    To change flutter SDK path go to:- Preferences -> Languages & Frameworks -> Flutter -> And there Flutter SDK path: here you set your SDK path(e.g./Users/myimac/Development/flutter_1_20_2/flutter)

    0 讨论(0)
  • 2020-12-16 17:50

    The path to the SDK should be to the main Flutter folder (e.g. C:\src\flutter and not to the bin folder as set in the Environment Variable Path.

    0 讨论(0)
  • 2020-12-16 17:57

    Flutter folder put on dekstop and try to again to set flutter sdk path

    check this also..

    https://flutter.dev/docs/get-started/install/windows

    0 讨论(0)
  • 2020-12-16 18:01

    The same problem faced me, but trying the above solution was not helpful. So I tried another thing:

    1. Open File
    2. Select settings from the File menu
    3. Select Languages & frameworks from the left panel
    4. Select Flutter
    5. Then from the right panel choose the location of your flutter SDK

    The location of flutter SDK is where you copied or cloned the code. In my case it was like the following:
    If the specified location contains the flutter SDK, the version section will contain your flutter version. If not, the version section will not contain any versions and there will be a message in the bottom of the setting dialog saying:

    Flutter SDK Is Not Found In The Specified Location

    Hope this helps.

    0 讨论(0)
  • 2020-12-16 18:11

    As mentioned in the message it is optional and only used for specific tasks.

    You can install it from Android Studio

    Menu > Tools > SDK Manager > Android SDK (left side of the dialog) > SDK Tools (tab)

    Ensure that this line is enabled

    With [OK] it should be installed.

    0 讨论(0)
提交回复
热议问题