Error:(1, 0) Plugin with id 'android' not

2019-01-17 11:13发布

问题:

I have just installed Android Studio and after some quirks about the SDK Build Tools minimum having to be 19.1.0 instead of 19.0.3 I have not came about another error

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

I haven't found a solution in google and I am absolutely new so I "have no clue"... the error shows up when I just created a new blank activity (and application).

What does the error means and how to fix it? (if it's a problem)

Thanks.

回答1:

Put below code in build.gradle file of main Application and sync it.

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}


回答2:

It Works, I just change gradle version to classpath 'com.android.tools.build:gradle:1.0.0'