๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸŒตandroid

[์•ˆ๋“œ๋กœ์ด๋“œ] Error:(1,0) Plugin with id'com.android.application' not found

by _viper_ 2016. 1. 26.
๋ฐ˜์‘ํ˜•

์ดํด๋ฆฝ์Šค ํ”„๋กœ์ ํŠธ๋ฅผ ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค๋กœ import ํ•  ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๊ฐ€ ๋ฐœ์ƒํ•  ๋•Œ ํ•ด๊ฒฐ๋ฐฉ์•ˆ์ž…๋‹ˆ๋‹ค.

Error:(1,0) Plugin with id'com.android.application' not found

 

โ–ถGradle Scripts > build.gradle

apply plugin: 'com.android.application'  --> ์ด Line ์œ„์— ์ฝ”๋“œ ์ „๋ถ€ ๋ถ™์—ฌ ๋„ฃ์–ด์ฃผ์„ธ์š”

์ €๊ฐ™์€ ๊ฒฝ์šฐ๋Š” import ํ–ˆ์„ ๋•Œ buildscript {} ๋ถ€๋ถ„์ด ์ƒ์„ฑ๋˜์ง€ ์•Š์•„ ์ถ”๊ฐ€ํ•ด ์ฃผ๋‹ˆ ์—๋Ÿฌ ์‚ฌ๋ผ์ง€๊ณ  ์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'
    }
}
apply plugin: 'com.android.application'