마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

프로젝트 강종 후 에러가 나는데 검색해도 잘안나오네요 ㅜ

0 추천
코딩중에 run이 좀 느리게 되서 작업관리자로 프로그램 강종 후 프로젝트를 키니 에러가 납니다..

구글검색도 다른 내용만 찾아지구 혹시나해서 여쭤봐요 ㅜㅜ

 

프로그램 윗부분엔 이렇게 나옵니다

Gradle project sync failed. Basic functionality(e.g editing, debugging) will not work properly.

프로그램 하단 메세지 출력부분엔 이렇게 나옵니다.

Error:Timeout waiting to lock artifact cache (C:\Users\KKJ\.gradle\caches\modules-2). It is currently in use by another Gradle instance.
Owner PID: 5752
Our PID: 3172
Owner Operation: resolve configuration ':classpath'
Our operation: resolve configuration ':classpath'
Lock file: C:\Users\KKJ\.gradle\caches\modules-2\modules-2.lock
맹꾸 (500 포인트) 님이 2016년 1월 8일 질문
맹꾸님이 2016년 1월 8일 수정

1개의 답변

0 추천

Source: http://stackoverflow.com/questions/33900330/error-while-compiling-app

Gradle will sometimes leave a gradle-daemon running that can hold locks on your project files. The directory indicated C:\Users\prasid444.gradle\caches\modules-2 is a cache directory for temporary files.

You can move/remove the folder and try the build again. (Move it to a temporary location in case you have cached files that may be hard to obtain, which should not happen, or you simply want piece of mind while fixing this problem.)

Also, there may be references to files in a .lock file somewhere. You can try a gradle clean build command or just move/remove everything in C:\Users\prasid444.gradle\caches

GNU/Linux, Windows 관례없이 HOME directory 에서 .gradle directory 를 삭제 후 rebuild

즉, 질문자의 경우, Windows 의 HOME directory C:/Users/KKJ 에서 .gradle directory 를
삭제하고 rebuild.
 

i hope this may help you.

익명사용자 님이 2016년 1월 8일 답변
...