Unable to load class 'org.gradle.initialization.BuildCompletionListener'
org.gradle.initialization.BuildCompletionListener
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
프로젝트를 다운받고 이 오류에 만났다...
처음 이 오류를 GPT에 돌렸을 때 gradle의 캐시를 삭제하라고 나왔다.
근데 rm -rf 명령어가 나온다.
절대 하면 안된다. (이거 했다가 다 날라감...)
JDK도 다시 확인해보고 여러 방법 해본 결과
build.gradle 파일에서 맞는 버전으로 변경해줘야 한다.
classpath 'com.android.tools.build:gradle:3.0.0'
위에가 원래 버전 아래가 바꾼 버전
classpath 'com.android.tools.build:gradle:8.5.1'
바꾸고 다시 돌려보면 잘 된다..
[C++] RAII 패턴 (0) | 2024.12.20 |
---|---|
[Java] ClassPath로 .jar 파일 사용하기 (0) | 2024.12.12 |
인텔리제이에서 JNI 테스트 (0) | 2024.12.10 |