Please configure Android SDK Android Studio

故事扮演 提交于 2020-07-08 11:14:13

问题


I am working with flutter and have the message Please configure Android SDK, I was looking at other answers but they don't fit, I click on configure and get the following image Image. You can see its asking me for locations, I checked and they are correct. How can I configure SDK properly?


回答1:


I have the same problem after updating to Flutter 2.1.0. For me the solution was to open another NATIVE project for Android in another Android Studio window. After it has been successfuly opened, Logcat for Flutter project was working fine..




回答2:


I had to go to the Android project (in the /android folder) and import the build.gradle file. (Right-click on build.gradle file and select "Import" from the contextual menu).




回答3:


There is a closed ticket, number 16691, in the Flutter GitHub repository. We can follow these steps to solve this issue:

  1. Open a Flutter project in Android Studio.
  2. Click on File -> Project Structure.
  3. Select the Project tab, under Project Settings.
  4. At the main screen, we should see No SDK in red under the Project SDK section.
  5. Click on the dropdown menu and select an API version installed. Example: Android API 29 platform.
  6. Click Ok. The Logcat should start working.



回答4:


It worked for me by simply restarting Android Studio File->Invalidate Caches and restart




回答5:


Open Android Studio, add click open existing Android Project.

Click Logcat, and will download ADB, After that, The Android SDK is be configed finally.



来源:https://stackoverflow.com/questions/54634187/please-configure-android-sdk-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!