【发布时间】:2014-10-11 09:33:58
【问题描述】:
在我的应用程序中,我将 pubspec.yaml 文件设置为:
name: server
dependencies:
oracledart: any
运行 pub get 后,我正确更新了文件夹“packages”。
我想创建子文件夹来单独测试我的功能,所以我创建了文件夹:test/boms.dart,即:
import 'dart:async';
import 'package:oracledart/oracledart.dart';
void main() {
...
}
但是一旦运行它,我得到了这个错误消息:
Unhandled exception:
Uncaught Error: FileSystemException: Cannot open file, path = 'G:\app\bin\test\packages\oracledart\oracledart.dart' (OS Error: The system cannot find the path specified.
是否需要将'packages'文件夹复制到每个具有“main”功能的子文件夹中,或者有其他连接方式!
【问题讨论】: