Why Error:(17, 0) Plugin with id 'com.android.

2019-07-08 08:25发布

问题:

I created a test project and add the library.

In the process of implementing it in my project I needed to add a line in build.gradle atmodule in dependencies, just such a line

compile project (':library')

And then added to the settings.gradle

include ':library', ':app' 

and build.gradle atProject changed its classpath on

classpath 'com.android.tools.build:gradle:1.2.3' 

and all was good!

Once it's working, I tried to implement this library in the main project and carried out the same steps as in the first case, but got an error that I do not know how to fix. What have I done wrong?

I have tryed find how to solve it in google and have tryed add some lines in my gradle like this

buildscript {
repositories {
mavenCentral()
}

And have tryed change number of tools version on 1.5.0 , but without success... What i am doing wrong? Help me