useful

Cannot resolve symbol 'Properties'

GunwooYun 2022. 9. 9. 08:44

프로젝트에 에러가 발생했다.

 

Cannot resolve symbol 'Properties'

 

error
code

 

당연히 내가 알 수 없는 문제다. 인터넷 검색을 해본다.

 

https://stackoverflow.com/questions/56938436/first-flutter-app-error-cannot-resolve-symbol-properties

 

First Flutter App error: cannot resolve symbol "Properties"

I followed the steps in the Flutter document and tried to build my first Flutter app in Intellij IDEA. And when I try to run it,there was an error about my JAVA_HOME variable. And an error about ca...

stackoverflow.com

아, 프로젝트의 안드로이드 플랫폼이 지정되어있지 않아 생기는 문제구나. 페이지에 나온 방법대로 따라해본다.

 

File -> Project Struture -> Project Setting -> Project -> Project SDK

 

Project SDK

 

<NO SDK> 를 안드로이드 플랫폼으로 변경하니... 일단 Properties 에러는 제거.

 

근데 아직 GradleException 에러가 남아있다.. 

 

GradleException

위 페이지에서 제시하는 방법은 두가지.

 

1. File -> Invalidate Caches -> Invalidate and Restart

2. 키워드 new 를 제거

 

먼저, 1번 솔루션을 해보지만 효과가 없다. 그래서 new를 지워본다.

 

new 제거

 

깔끔하게 에러가 사라졌다. 하지만 기존의 생성된 코드를 수정하니 뭔가 찝찝함이 있다. 하지만, 일단 에러는 깔끔하게 제거 됐으니, 나이스하다.