Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pub get failed (65 ' ) exit code 65

While trying to download packages to the flutter project im getting like:- [project] flutter pub get Running "flutter pub get" in project...
Error on line 25, column 5 of pubspec.yaml: A dependency may only have one source.

25 │ ┌ sdk: flutter

26 │ │ curved_navigation_bar: ^0.3.3

27 │ │ # The following adds the Cupertino Icons font to your application.

28 │ │ # Use with the CupertinoIcons class for iOS style icons. ter 29 │ │ cupertino_icons: ^0.1.3

│ └──^

╵ pub get failed (65; ╵) exit code 65

like image 834
saride satishkumar Avatar asked Aug 31 '20 12:08

saride satishkumar


Video Answer


2 Answers

You got that error because your pubspec.yaml is not well formatted. You should have it as

  flutter:
    sdk: flutter


  curved_navigation_bar: ^0.3.3

and not

dependencies:
  flutter:
    sdk: flutter
    curved_navigation_bar: ^0.3.3
like image 84
Josteve Avatar answered Oct 17 '22 04:10

Josteve


I think your project name is same as your dependencies name

check this website

like image 1
Narendran Rammudo Avatar answered Oct 17 '22 05:10

Narendran Rammudo