플러터 A dependency may only have one source 에러

플러터 dependency 오류 해결방법

dependency-오류해결-방법01

👉 Error on line 30, column 5 of pubspec.yaml: A dependency may only have one source.

해당 위의 오류는 pubspec.yaml에서 dependencies를 정상적으로 인식을 못해서 발생하는 오류 입니다.

자세히 보시면 sdk: flutter와 라인을 맞춰서 flutter_test안으로 들어간걸로 인식이 되어서 발생되었습니다.

dependency-오류해결-방법02

그리하여, 들여쓰기flutter_test와 맞추고 다시 pub get을 하면 이상없이 잘 받아집니다.

 

Leave a Comment