Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubspec.yaml meet Error on line , column of pubspec.yaml: A dependency may only have one source. #2

Open
zhanzengyu opened this issue Dec 6, 2018 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@zhanzengyu
Copy link
Owner

Error on line 25, column 5 of pubspec.yaml: A dependency may only have one source.
sdk: flutter
^^^^^^^^^^^^^

pub get failed (65)

@zhanzengyu zhanzengyu added the question Further information is requested label Dec 6, 2018
@zhanzengyu zhanzengyu self-assigned this Dec 6, 2018
@zhanzengyu
Copy link
Owner Author

这个是对齐问题

dev_dependencies:
  flutter_test:
    sdk: flutter

    english_words: ^3.1.0

这样会报错。库要跟flutter_test对齐。所以缩进一下 english_words 行就可以了。

dev_dependencies:
  flutter_test:
    sdk: flutter

  english_words: ^3.1.0

@zhanzengyu zhanzengyu changed the title flutter 在pubspec.yaml添加依赖报错 pubspec.yaml meet Error on line , column of pubspec.yaml: A dependency may only have one source. Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant