Skip to content

Diagnosing Problems

Phil Quitslund edited this page May 20, 2017 · 5 revisions

This is a general page to help diagnose issues.

SDK settings page

You can validate that you have a Flutter SDK configured for your project by going to Settings > Languages & Frameworks > Flutter and confirm that there is a setting for the Flutter SDK path field.

Flutter doctor

Flutter doctor is a great tool to validate settings. You can run it from the command-line via flutter doctor, and from IntelliJ via Tools > Flutter > Flutter Doctor. Please validate that the results for each look reasonable, don't report issues, and agree with each other in terms of the installed toolchains and paths.

Issues running

If you see issues when running apps - apps not coming up or buttons not becoming enabled - you can run in verbose mode. Open the launch configuration for the application (Run > Edit Configurations...), select the Flutter launch configuration for your app, and in the Additional arguments field add -v. Hit OK to close the dialog. The next time you run that app, it will log verbose information to the run console. This may help in diagnosing where the problem is.

Restarting

If all else fails, try:

  • restarting IntelliJ
  • restarting the iOS simulator
  • checking Android devices for a 'authorize debugging' dialog