Plugin [id: 'kotlin-android'] was not found in any of the following sources
Plugin [id: 'kotlin-kapt'] was not found in any of the following sources
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
}
Room ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฐ๋ ค๊ณ plugin์ 'kotlin-android'์ 'kotlin-kapt'๋ฅผ ์ถ๊ฐํ๋๊น ์ด์ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฌ๋ค.๐ข
ํด๊ฒฐ ๋ฐฉ๋ฒ
Project ๋ ๋ฒจ์ Gradle ํ์ผ๋ก ๊ฐ๋ค.
Gradle ํ์ผ์ ์๊ธฐ์ ํ์ฌ ์ฝํ๋ฆฐ ๋ฒ์ ๊ณผ, classpath๋ฅผ ์ถ๊ฐํด์ฃผ๋ฉด ๋๋ค!
buildscript {
ext.kotlin_version = "1.5.0"
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
๋ค์ ๋น๋ํด๋ณด๋ฉด, ์ค๋ฅ๊ฐ ํด๊ฒฐ๋ ๊ฒ์ด๋ค! ๐๐
'Android' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์๋๋ก์ด๋ ์คํ๋์ค Database Inspector์์ DB๊ฐ ์๋ณด์ผ ๋ (0) | 2021.06.04 |
---|---|
์๋๋ก์ด๋ ์คํ๋์ค ํ๋ก์ ํธ Java๋ฅผ Kotlin์ผ๋ก ๋ณํ (java kt๋ก ๋ฐ๊พธ๊ธฐ) (0) | 2021.05.28 |
์๋๋ก์ด๋ ํ์ดํ ๋ฐ ์์ ๊ธฐ (0) | 2021.03.09 |
๋ทฐ๋ฐ์ธ๋ฉ ์ด๊ธฐ ์์ (0) | 2021.02.26 |
์๋๋ก์ด๋ ์๋ช ์ฃผ๊ธฐ (0) | 2021.02.23 |