Skip to content

[BUG] project 생성 by gradle 에러 #1

@kimhanui

Description

@kimhanui

로그

Caused by: java.lang.NoClassDefFoundError: org/gradle/api/internal/plugins/DefaultConvention

원인

gradle x intellij 또는 intellij 내부 플러그인의 버전이 맞지 않아서 생기는 오류

해결

gradle이 6.x버전을 쓰고 있다면 5.x로 내려서 해결

  • 당시 환경
    -> intellij: 2018.3.2
    -> gradle: 6.4

  • gradle 버전 변경 command
    -> gradlew wrapper --gradle-version 5.6.4 (당연하지만 프로젝트 root에서 실행해야함)

image
해결하면 sync 잘 맞음

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions