找不到如何修复ID为'com.github.dcendents.android-maven'的插件.在android studio中

找不到如何修复ID为'com.github.dcendents.android-maven'的插件.在android studio中

问题描述:

我正在android studio中创建一个android应用程序.我正在向我的项目添加一个库,该库是从此处下载的.当我将此库添加到我的项目时,它显示了一个名为错误:(2,0)找不到ID为'com.github.dcendents.android-maven'的插件." .请告诉我如何解决.

I am creating an android application in android studio. I am adding a library to my project which was downloaded from here . When i was adding this library to my project it was showing an error called "Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.". Please tell me how to fix it.

在顶层build.gradle依赖项中,粘贴此类路径. 我不知道为什么我不能在网站上看到这种方法. 无论如何,我都是用这种方式修复的.

In top level build.gradle dependencies, paste this classpaths. I wonder why cant i've seen this method in websites. Anyway, I fixed it using this way.

dependencies {
    //YOUR DEPEDENCIES
    classpath 'com.github.dcendents:android-maven-plugin:1.2'
    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}