Flutter Error) Target of URI doesn't exist: 'package:flutter/material.dart'.Try creating the file referenced by the URI, or try using a URI for a file that does exist.

반응형

 

Error

Target of URI doesn't exist: 'package:flutter/material.dart'.
Try creating the file referenced by the URI, or try using a URI for a file that does exist.

다른 환경의 컴퓨터에서 플러터를 실행하니 다음과 같은 에러가 출력되며 애플리케이션이 실행되지 않았다.

에러 메시지를 읽어보니 대략적으로 dart가 없다는 것 같다.

분명 설치했었던거 같은데... 아닌가?...


해결 방법

  • 프로젝트 우측의 디렉토리에서 'pubspec.yaml' 파일 열기

 

  • 우측 상단의 다운로드 버튼(Get Packages) 클릭

 

  • 에러 해결

반응형