Flutter does not find android sdk

前端 未结 25 2218
花落未央
花落未央 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:13

    First run flutter upgrade from your terminal , If you get the following error,

    ANDROID_HOME = C:\Users\Name\AppData\Local\Android\sdk\Android
          but Android SDK not found at this location.
    
    1. First go to android studio, Settings->System Settings->Click the expand arrow
    2. Then go to the Android SDK option and add the corresponding SDK to the project then go to Project Structure and add the respective SDK to the project Structure
    3. Then run flutter upgrade in the terminal

提交回复
热议问题