์๋๋ก์ด๋ ์คํ๋์ค 4.1 ๋ฒ์ ์์๋ ์์ ฏ์ ์ ๊ทผํ๊ธฐ ์ํด ์๋์ผ๋ก ์ฝํ๋ฆฐ ์ต์คํ ์ ์ ์ถ๊ฐํด์ผ ํ๋ค.
build.gradle(Module:ํ๋ก์ ํธ์ด๋ฆ.app) ํ์ผ ํด๋ฆญ.
plugins {
id 'com.android.application'
id 'kotlin-android'
// ์๋ ์ฝํ๋ฆฐ ์ต์คํ
์
์ ์ถ๊ฐํฉ๋๋ค.
id 'kotlin-android-extensions'
}
...
id 'kotlin-android-extensions'๋ฅผ plugins ๋งจ ๋ฐ์ ์ถ๊ฐํ์!
(+) ์ถ๊ฐ
id๋ฅผ ์ฌ์ฉํ๊ฒ ๋๋ฉด, ๋ค๋ฅธ ํ๋ฉด์ ๋ฒํผ์ด๋ ํ ์คํธ๋ทฐ๋ฅผ ๊ฐ์ ธ์ค๊ฒ ๋๋ ์ํ์ด ์๊ธฐ ๋๋ฌธ์
์ฝํ๋ฆฐ ์ต์คํ ์ ์ ์์ด์ง ๊ณํ์ด๋ผ๊ณ ํฉ๋๋ค!
์์ฒ๋ผ id์ ์ง์ ์ ๊ทผํ๋ ๋ฐฉ๋ฒ ๋์ ๋ทฐ๋ฐ์ธ๋ฉ์ ์ฐ์ค ๊ฒ์ ์ถ์ฒ!!!!!
๋ทฐ๋ฐ์ธ๋ฉ ์ด๊ธฐ ์์
1. build.gradle(Module:ํ๋ก์ ํธ์ด๋ฆ.app)์ android ๋ฐ์ ์ด ์ฝ๋๋ฅผ ์ถ๊ฐ viewBinding { enabled = true } 2. MainActivity.kt๋ก ๊ฐ์ ์ฝ๋ ์ถ๊ฐ class MainActivity : AppCompatActivity() { lateinit var bind..
hyunjungchoi.tistory.com
์ถ์ฒ
flow9.net/bbs/board.php?bo_table=thisisandroid&wr_id=78
[์ ๋ฐ์ดํธ] Android Studio 4.1 ์์ ์์ ฏ ์์ด๋์ ์ ๊ทผํ๊ธฐ > ์ด๊ฒ์ด์๋๋ก์ด๋๋คwith์ฝํ๋ฆฐ | flow9.net
build.gradle ์ ๊ทธ๋ฆผ์ ์ฝํ๋ฆฐ ์ต์คํ ์ ์ ์ถ๊ฐํ๋๋ฐ์, ์ ์ฉ ๋ฒํผ์ ๋๋ฌ๋ณด๋ ๋ค์ด๋ก๋๊ฐ ์งํ๋๋ฉด์ (์๋ง ํ๋ฌ๊ทธ์ธ ์ค์นํ์ผ์ธ๊ฒ ๊ฐ์์) ๋ฌด์ฌํ ํด๊ฒฐ์ด ๋์์ต๋๋ค. ๊ทธ๋ ๋ค๋ฉด ์๋ก์ด ํ๋ก
flow9.net
'Android' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Plugin [id: 'kotlin-android'] was not found in any of the following sources ์ค๋ฅ ํด๊ฒฐ (2) | 2021.05.23 |
---|---|
์๋๋ก์ด๋ ํ์ดํ ๋ฐ ์์ ๊ธฐ (0) | 2021.03.09 |
๋ทฐ๋ฐ์ธ๋ฉ ์ด๊ธฐ ์์ (0) | 2021.02.26 |
์๋๋ก์ด๋ ์๋ช ์ฃผ๊ธฐ (0) | 2021.02.23 |
์๋๋ก์ด๋ ์คํ๋์ค styles.xml ์์ (5) | 2021.02.07 |