출처: http://stickyny.tistory.com/61
File > Invalidate Caches / Restart > Invalidae and Restart |
Clean이랑 Rebuild 해봐도 에러 해결이 안된다.
하지만 Invalidate Caches 한 방이면 해결이 된다.
If you see this error after moving java files or directories to other locations,
then you can guarantee that Android Studio has gotten confused. And guess what? undo-ing those actions doesn't fix the problem.
So you try a clean, but that doesn't work. And restarting doesn't work either.
But try File -> Invalidate Caches / Restart... -> Invalidate and Restart.
Android Studio maintains information about which files are dependent on which other files.
And since moving files around is not implemented correctly, moving files causes errors.
And that's not all: caches of these dependencies are used in an attempt to speed up the build.
This means you not only have to restart, but you need to invalidate those caches to restore (or more accurately, rebuild) sanity.
'IT_Programming > Dev Tools' 카테고리의 다른 글
[펌] ngrok으로 로컬 네트워크의 터널 열기 (0) | 2016.03.08 |
---|---|
[GIT] git 실수로 한 commit, push 강제 취소 시키기 (0) | 2015.12.23 |
Android Gradle 빌드 속도 높이기 (0) | 2015.09.30 |
[펌][안드로이드 스튜디오] Android NDK Debugging / 네이티브 코드 디버깅하기 (0) | 2015.08.20 |
[안드로이드 스튜디오] apk 이름 변경 하기, 버전별 자동 생성 정리하기 (0) | 2015.08.17 |