如何修复未找到 ID 为“com.github.dcendents.android-maven"的插件.在安卓工作室 [英] How to fix Plugin with id 'com.github.dcendents.android-maven' not found. in android studio

查看:41
本文介绍了如何修复未找到 ID 为“com.github.dcendents.android-maven"的插件.在安卓工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 android studio 中创建一个 android 应用程序.我正在向我的项目中添加一个库,该库是从 here 下载的.当我将这个库添加到我的项目时,它显示了一个错误,名为 Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.".请告诉我如何修复它.

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
}

这篇关于如何修复未找到 ID 为“com.github.dcendents.android-maven"的插件.在安卓工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆