Machine: Linux (Ubuntu 17.04)
Trying to execute this program: example/example_interleaved_execution.dart
$ dart example_interleaved_execution.dart
Error:
Unhandled exception:
Could not import "package:threading/threading.dart" from "file:///home/xxxxs/devel/dartprog/example_interleaved_execution.dart": Could not resolve a package location for base at file:///home/xxxxs/devel/dartprog/example_interleaved_execution.dart
null:
Already Tried:
pub cache repair
Post1- Deleted
~/.pub-cache
- Rebooted machine and tried
$ dart example_interleaved_execution.dart
and same error.
How to solve this one?
(Note: If anyone is working behind proxy, make sure "pub" is working under root too.)