안드로이드 개발

java.nio.file.NoSuchFileException 간단 해결 방법

피커 2022. 12. 30. 17:50
728x90
반응형

안드로이드 빌드 중에 java.nio.file.NoSuchFileException 라는 문구를 남기며 빌드에러가 발생하는 경우가 있다.

간단히 해결하는 방법을 공유합니다.

 

 

1. 해결 방법

  -. 이전 빌드에서 발생한 오류들이 남아있어서 gradle build시 에러가 발생하는 경우이다.

     기존 값을 지우고 다시 빌드하는 clean build가 필요하다.

     코드 경로에서 .gradle 폴더를 지우고 다시 빌드를 하면 해결된다.

 

2. 관련 스크린샷

  -. 아래는 .gradle 이 있는 스크린샷을 표시하였습니다.

      별표를 참고하시면 됩니다.

 

 

3. clean build

  -. 위처럼 직접 지우는 방법외에도 android studio에서는 clean build를 할 수 있는 메뉴를 지원합니다.

     아래 메뉴의 clean build를 선택하여 clean up을 진행하여 쓰레기 값을 비우도록 합니다.

 


4. clean build란?

  -. When you clean a build, all intermediate and output files are deleted, leaving only the project and component files. From the project and component files, new instances of the intermediate and output files can then be built.

 

반응형