Why Error:(17, 0) Plugin with id 'com.android.library' not found?

本小妞迷上赌 提交于 2019-12-11 02:04:19

问题


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

来源:https://stackoverflow.com/questions/36419416/why-error17-0-plugin-with-id-com-android-library-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!