Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- TextFormField
- project flow
- 안보내짐
- 에러
- 앱
- StringUtils.isBlank
- Could not create service of type FileAccessTimeJournal using
- 입력 커서
- 플러터
- carousel slider
- Set ID
- runSpacing
- 안드로이드
- freezed
- gestureRecognizers
- 크롬개발자도구
- VerticalMultiDragGestureRecognizer
- foreground
- not working
- Flutter
- 플루터
- 웹뷰
- Chrome Developer Tools
- fullBackupContent
- allowBackup
- 두 수의 나눗셈
- TCP/IP모델
- StringUtils.isEmpty
- Flutter SDK
- 프로그래머스
Archives
- Today
- Total
흰오목눈이야 개발하자
[Android] Could not create service of type FileAccessTimeJournal using 에러 해결 본문
안드로이드/DevLog
[Android] Could not create service of type FileAccessTimeJournal using 에러 해결
흰오목눈이 2022. 11. 9. 19:05비주얼 스튜디오 코드에서 플러터 개발을 하고 종료한 다음 안드로이드 스튜디오에서 안드로이드 개발을 하고 실행을 하려던 도중 앱이 빌드가 되지 않는 오류가 발생했다.
Error:A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Timeout waiting to lock artifact cache (/Users/tester/.gradle/caches/modules-2). It is currently in use by another Gradle instance.
Owner PID: 1234
Our PID: 5678
Owner Operation: resolve configuration ':classpath'
Our operation: resolve configuration ':classpath'
Lock file: /Users/tester/.gradle/caches/modules-2/modules-2.lock
원인
안드로이드 스튜디오에서 빌드를 하다가 빌드를 도중에 취소하거나 안드로이드 스튜디오를 강제 종료했을 경우가 있는데 그때 빌드가 정상적으로 종료되지 않은 경우 이전 빌드 프로세스가 캐시 파일을 잠가버려 빌드가 불가능한 상태가 된다. 그 경우 위와 같은 오류가 발생한다.
해결
- 잠그기 전에 빌드 프로세스를 종료시키기
- 잠긴 파일을 삭제
하면 된다.
잠그기 전에 빌드 프로세스를 종료시키기
ps aux | grep OWNER_PID
예) ps aux | grep 1234
해당 PID의 프로세스가 안드로이드 스튜디오의 프로세스와 같은 것을 확인한 후,
kill -9 OWNER_PID
예) kill -9 1234
잠긴 파일 삭제
rm 경로
예) rm /Users/tester/.gradle/caches/modules-2/modules-2.lock
위의 코드를 순서대로 입력한 후에 실행해보니 해결되었다.
'안드로이드 > DevLog' 카테고리의 다른 글
안드로이드 웹뷰 디버깅하기 (Android WebView Debugging) (0) | 2022.09.27 |
---|---|
20200511 Git Bash (터미널) 유저(계정) 변경 (0) | 2020.05.11 |
20200426 Material Design (0) | 2020.04.26 |
20200406 DevLog: Slider Button(슬라이더 버튼) 흐리게 만들기 (0) | 2020.04.06 |
20200327 DevLog: (kotlin) lateinit, getText, Listview (0) | 2020.03.27 |