Flutter SDK and/or Dart SDK settings keep changing while Android Studio is running
See original GitHub issueThanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.
Steps to Reproduce
- Running Android Studio on Mac
- Change Dart SDK from flutter installed version to Homebrew installed 2.2.0. Click Apply and then OK.
- After some time, maybe restart the IDE, notice that the
skip
parameter for a test method is not recognized as defined. - I will go to the settings and see that either the Dart SDK reverts back to the version used by flutter and/or the Flutter SDK is set as empty or undefined.
Manually changing the Dart SDK back to the version used by flutter may not correct the issue seen in the IDE. Going back to the setting, the Flutter SDK may have been changed by the IDE/plugin or the Dart SDK is re-set to the non-flutter installed version.
It’s very hard to understand the logic. For the Dart SDK, I may even set it to look for updates on the Stable channel only and even that would get undone when the Dart SDK gets auto changed.
Look at the following screenshots (look at the time stamps to see how quickly the settings change on their own.
-
at 6:11:57 PM
-
at 6:12:06 PM
-
at 6:12:18 PM I changed the Flutter SDK
-
at 6:12:43 PM, noticed it had no impact and the IDE still reported the same issue (
skip
not defined) -
at 6:12:51 PM - Flutter remains unchanged
-
at 6:12:59 PM - The Dart SDK setting changed with no user input
-
at 6:13:27 PM - Flutter is set as empty/undefined with no user input
Version info
flutter doctor --verbose [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-US) • Flutter version 1.2.1 at /Users/User/flutter • Framework revision 8661d8aecd (5 weeks ago), 2019-02-14 19:19:53 -0800 • Engine revision 3757390fa4 • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/User/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01) • All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.6.1
[✓] Android Studio (version 3.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 33.4.1 • Dart plugin version 182.5215 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 30.0.2 • Dart plugin version 183.5912.23
[!] Connected device ! No devices available
! Doctor found issues in 1 category. Process finished with exit code 0
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Possibly. I’m not familiar with VS Code, but getting a new SDK was the key point of my previous remark.
The Flutter SDK contains a Dart SDK that it is designed to work with. Manually setting the Dart SDK is not supported when the Flutter plugin is installed.