问题
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 . 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:
- Open a Flutter project in Android Studio.
- Click on File -> Project Structure.
- Select the Project tab, under Project Settings.
- At the main screen, we should see No SDK in red under the Project SDK section.
- Click on the dropdown menu and select an API version installed. Example: Android API 29 platform.
- 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