question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix pub operations for Flutter in the Dart Plugin (was Failure when opening flutter examples)

See original GitHub issue

Tested with plugin version 0.0.6:

  1. Open IJ, and do File>Open
  2. Navigate to /flutter/examples/hello_world and hit OK
  3. It prompted that Dart support is not enabled, enable it
  4. When prompted that “‘Pub get’ has not been run” hit 'Get dependencies"

Fails with:

Working dir: /Users/mit/dev/github/flutter/examples/hello_world
/Users/mit/dev/github/flutter/bin/cache/dart-sdk/bin/pub get
Resolving dependencies...
The Flutter SDK is not available.
Depended on by:
- hello_world 
Process finished with exit code 69

Pub should be available there:

$ /Users/mit/dev/github/flutter/bin/cache/dart-sdk/bin/pub --version
Pub 1.20.0-dev.10.1
$

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
devoncarewcommented, Oct 11, 2016

This is something we’ll need to handle. The way those pubspecs are written (https://github.com/flutter/flutter/blob/master/examples/hello_world/pubspec.yaml#L5), you can’t use pub get or pub upgrade with them (which IntelliJ is doing). You need to run flutter packages get and flutter packages upgrade.

0reactions
alexander-doroshkocommented, Oct 25, 2016

@mit-mit Make sure your Dart plugin version is 162.2485.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing a dependencies problem in Flutter. Says build failed ...
I have similar error and after many tries I solved in this way: Update MacOS; Update Xcode and command lines tools; Run flutter...
Read more >
Solving problems when pub get fails | Dart Cookbook
First try this; right-click on your project and select Close Folder. Then, restart the editor and open your project again. In many cases,...
Read more >
Android Studio and IntelliJ - Flutter documentation
Open preferences (Android Studio > Check for Updates on macOS, Help > Check for Updates on Linux). If dart or flutter are listed,...
Read more >
pspdfkit_flutter 2.0.0 | Flutter Package - Pub.dev
Let's create a simple app that integrates PSPDFKit and uses the Flutter pspdfkit plugin. Run flutter create --org com.example.myapp myapp . Open myapp/pubspec....
Read more >
Linter rules - Dart
AVOID using web libraries, dart:html , dart:js and dart:js_util in Flutter packages that are not web plugins. These libraries are not supported outside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found