Ed *_*hel 6 dart dart-pub dart-editor
尝试从以下链接查看教程:
http://blog.dartwatch.com/2012/03/building-client-server-dart-app-part-1.html http://blog.dartwatch.com/2012/03/building-client-server-dart -app-部分2.HTML
这是我的pubspec.yaml:
name: myapp
description: A sample application
dependencies:
log4dart: any
mongo_dart: 0.0.1
unittest: { sdk: unittest }
crimsonhttp:
git: git://github.com/chrisbu/CrimsonHttp.git
Run Code Online (Sandbox Code Playgroud)
这是错误:
解决依赖关系......
包'log4dart'取决于来自'托管'和'git'的两个来源.
如果我将'log4dart'添加到pubspec(any)或无.错误总是一样的.'log4dart'无论如何都是从'mongo_dart'安装的.有没有任何关于该特定错误消息的经验?对我来说,它似乎就像循环依赖问题.
解决方案 直到'crimsonhttpd'得到问题修复或接受我的拉取请求,使用我的github存储库和以下pubspec示例:
name: myapp
description: A sample application
dependencies:
mongo_dart: 0.0.1
unittest: { sdk: unittest }
crimsonhttp:
git: git://github.com/geekrumper/CrimsonHttp.git
log4dart:
Run Code Online (Sandbox Code Playgroud)
John 是正确的,解决方法是为 log4dart 指定与 crimson 相同的 git 存储库。
包由它们的(源、描述)对来标识。对于托管包,描述只是包名称,但对于 Git 包,描述还包括 Git URL。因此,来自不同存储库的 log4dart 的两次 Git 签出也是不兼容的。
我已经打开了两个错误来修复您尝试使用的软件包: