Android Studio 4.2로 업데이트 후 Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764 오류 > 개발

본문 바로가기
사이트 내 전체검색

개발

Android Studio 4.2로 업데이트 후 Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764 오류

페이지 정보

profile_image
작성자 관리자 (112.♡.173.204)
댓글 0건 조회 6,939회 작성일 21-05-06 19:02

본문

Android Studio 4.2로 업데이트 후, 프로젝트 생성시에 아래와 같은 오류가 난다.

Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764



## build.gradle

build.gradle 파일 안에 설정되어 있는 ext.kotlin_version 1.5.0-release-764 이 서버에 없는 듯 하다.


## 수정하는 방법으로는

1. classpath 에 버전을 직접 지정해 주는 방법
```
dependencies {
  //classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0"
}
```

2. ext.kotlin_version 을 변경해 주는 방법
```
buildscript {
ext.kotlin_version = "1.5.0"
repositories {
    google()
    mavenCentral()
}
```

근데, ext.kotlin_version 이 classpath 에서만 사용되는 것이 아닌 모양이다. 다른 곳에서도 에러가 난다.
위 예에서, 1번 말고, 2번 처럼 처리하자.


## 참고
https://stackoverflow.com/questions/67400029/cant-create-new-kotlin-project-after-updating-to-android-studio-4-2

추천0

댓글목록

등록된 댓글이 없습니다.

Total 386건 1 페이지
  • RSS

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.