티스토리 뷰
Android/Troubleshooting
org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed
parkho79 2024. 4. 4. 20:19728x90
Android Studio 를 업데이트한 후 기존 프로젝트를 불러왔을 때 예상치 못하게 Groovy 관련 에러가 발생했다.
실제로 해당 프로젝트에서 Groovy 를 사용하고 있지 않음에도 불구하고, 에러가 발생했다.
이번 포스팅에서는 해당 오류를 해결하는 방법에 대해 알아보자
Error message
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed
Cause
알고보니 Android Studio 와 Gradle 빌드 시스템은 내부적으로 Groovy 를 활용하고 있었다.
이는 사용자가 Groovy 를 직접 사용하지 않았음에도 관련 메시지가 나타나게 한 원이이며,
실직적으로는 Gradle 빌드 과정 중 일치하지 않는 설정으로 문제가 발생한 것이다.
Solution
해당 에러가 모든 경우에 동일한 원인으로 발생하는 것은 아니겠지만, 필자의 경우는 JDK version 이 문제였다.
Gradle JDK version 을 11 로 설정해 주자.
◼ File -> Settings -> Build, Execution, Deployment, Build Tools -> Gradle

728x90
'Android > Troubleshooting' 카테고리의 다른 글
| Android Studio 에서 에뮬레이터 분리하기 (0) | 2023.03.24 |
|---|---|
| Android Studio 에서 run 했을 때 코드, 리소스 수정 사항이 반영되지 않는 경우 (0) | 2023.03.23 |
| Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` (0) | 2022.08.28 |
| FileUriExposedException (0) | 2021.10.14 |
| Deprecated Gradle features were used in this build, making it incompatible with Gradle x.x (0) | 2021.09.09 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- notifyDataSetChanged
- Android Service
- onCreateContextMenu
- android activity flag
- android flag activity
- M2E
- task
- 리워드앱
- 안드로이드 인텐트
- 앱테크 추천
- 리워드 어플
- p2e
- bindservice
- RoomDatabase
- BroadcastReceiver
- Intent
- mPANDO
- onContextItemSelected
- 무료채굴
- StartService
- WEMIX
- 안드로이드 서비스
- 채굴앱
- 앱테크
- task 생성
- StringUtils
- android task
- 무료 채굴
- android intent
- registerForContextMenu
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
250x250
