flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Missing SDK warning message can not be dismissed

Open SrAdam opened this issue 2 years ago • 1 comments

I am developing on a Mac a project in Flutter that is only meant to be released to iOS as of now. Accordingly, I do not have on my Mac the Android Studio and the Android Toolchain installed.

However, there is a super annoying warning message, that can not be dismissed and is eating up my screen space and causing me constant distractions.

Please make sure, that this message, shown below, can be dismissed once and for all for all the users, who do not need it.

Screenshot 2023-09-03 at 11 53 03

Version info

[✓] Flutter (Channel stable, 3.13.0, on macOS 13.1 22C65 darwin-arm64, locale en-AT) [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use flutter config --android-sdk to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [!] Android Studio (not installed) [✓] IntelliJ IDEA Ultimate Edition (version 2023.2.1) [✓] VS Code (version 1.81.1) [✓] Connected device (2 available) [✓] Network resources

SrAdam avatar Sep 03 '23 09:09 SrAdam

Workaround:

  • in Project Structure -> Modules , select your module (if you have multiple modules), then in Sources, select android folder and exclude
  • if you have a .iml file in your android folder, delete (or rename)

Restart and it should work.

adriantofan avatar Jan 23 '24 14:01 adriantofan