Device not applicable for the “main.dart” configuration ,

前端 未结 7 1355
名媛妹妹
名媛妹妹 2020-12-10 07:13

I use Android Studio as my IDE in coding Flutter. I was able to create 2 projects before this and it worked absolutely fine. I had to clone a repo from Github. The IDE said

7条回答
  •  爱一瞬间的悲伤
    2020-12-10 07:41

    This seems to be the problem:

    [X] Android toolchain - develop for Android devices
    -> ANDROID_HOME = D:\Android\Sdk but Android SDK not found at this location.
    

    Since you said that you added the Android SDK to your D directory, you could just add D:\Android\sdk\tools and D:\Android\sdk\platform-tools to your PATH environment variable. This is how you can add it to your Path enviroment variable: https://docs.telerik.com/teststudio/features/test-runners/add-path-environment-variables

提交回复
热议问题