我正在 android studio 中创建一个 android 应用程序。我正在向我的项目中添加一个库,该库是从 here 下载的.当我将此库添加到我的项目时,它显示了一个名为 的错误“错误:(2, 0) 未找到 ID 为 'com.github.dcendents.android-maven' 的插件。” .请告诉我如何修复它。
最佳答案
在顶级 build.gradle 依赖项中,粘贴此类路径。
我想知道为什么我不能在网站上看到这种方法。
无论如何,我使用这种方式修复了它。
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
}
关于maven - 如何修复未找到 ID 为 'com.github.dcendents.android-maven' 的插件。在安卓工作室,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28871084/