简体   繁体   中英

How to make Dart Editor find referenced packages

In the Dart Editor (x64), I create a new project from the "Polymer Web Application" template.

Immediately after creation, Dart Editor runs pub get command, executes building workspace.

Then for every import directive, like

import 'package:polymer/polymer.dart';

I got the following error: Target of URI does not exist: 'package:polymer/polymer.dart'

How can I make Dart Editor understand references for standard libraries?

我认为您的发布缓存已损坏,通常可以通过从命令行运行pub cache repair来解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM