본문 바로가기
Android

error: cannot resolve constructor

by 캡틴노랑이 2019. 10. 1.
반응형

 

context에서  cannot resolve constructor 오류 해결법

 

 

 

this 대신 getApplicationContext() 사용

 

이러면, 작동 안될 때가 있음. 그럴 때는 외부 메서드로 변경. 왜 이러는지는 모르겠음.

반응형

댓글