Flutter does not find android sdk

前端 未结 25 2017
花落未央
花落未央 2020-12-02 09:29

I just tried intalling flutter and since I already had android studio and the android sdk installed I just followed the installation of flutter. Here is my problem: When I r

相关标签:
25条回答
  • 2020-12-02 10:24

    I have got following issue on Flutter Doctor command.

    X Android SDK file not found: ..\Android\sdk\platforms\android-28\android.jar.

    to fix this just go to Tools=> Android Sdk =>Update Sdk Platform for which issue is there.(I installed SDK 28).

    check flutter document for this issue

    0 讨论(0)
  • 2020-12-02 10:24

    If you don't find the proper SDK path then, 1. Open Android Stidio 2. Go to Tools 3. Go to SDK Manager 4. You will find the "Android SDK Location"

    Copy the path and edit the "Environment Variable" After it, restart and run the cmd. Then, run "flutter doctor" Hope, it will Work!

    0 讨论(0)
  • 2020-12-02 10:25

    I spent a lot of time solving this.

    Eventually what worked was going to project settings in android studio, sdk tools, uncheck hide obsolete packages and install sdk tools obsolete package.

    Then run flutter doctor --android-licenses and then flutter doctor showed a green tick on my android toolchain.

    Hope this helps someone.

    0 讨论(0)
  • 2020-12-02 10:25

    In my case, I had these Folders and relevant things inside of them (C:\Users\Name\AppData\Local\Android\Sdk\platforms)

    and Error was this

    Solution

    Add System variables :

    1. Add folder paths of tools, build-tools, platform-tools to System variables -> Path

    C:\Users\Name\AppData\Local\Android\Sdk\tools

    C:\Users\Name\AppData\Local\Android\Sdk\build-tools

    C:\Users\Name\AppData\Local\Android\Sdk\platform-tools

    1. After that, close previous flutter_console.bat (or refresh your ide) and open it again then run "flutter doctor"

    0 讨论(0)
  • 2020-12-02 10:26

    We need to manually add the Android SDK. The instructions in the flutter.io/download say that the Android Studio 3.6 or later needs the SDK to be installed manually. To do that,

    1. Open the Android Studio SDK Manager
    2. In the Android SDK tab, uncheck Hide Obsolete Packages
    3. Check Android SDK Tools (Obsolete)

    Please refer the Android Setup Instructions.

    0 讨论(0)
  • 2020-12-02 10:27

    Flutter is designed to use the latest Android version installed. So if you have an incomplete download of the latest Android, Flutter will try to use that.

    So either complete the installation or delete the complete installation. You can find the Android versions at: /home/{user}/Android/Sdk/platforms/android-29/android.jar

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