引起这个错误的原因是因为你在,AndroidStudio的model中的
(注意是model中的,不是Project中的。)build.gradle文件中有一行
apply plugin: 'com.github.dcendents.android-maven'
而你没有在buildscript中制定这个的位置。
所以,你应该到你项目的(也就是Project目录下)找到build.gradle 文件
修改buildscript如下
buildscript {
repositories {
jcenter()
}
dependencies {
//。。。你的其他配置
//添加这行
classpath 'com.github.dcendents:android-maven-plugin:1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
最新推荐文章于 2020-02-21 19:04:50 发布
本文介绍如何解决在Android Studio中遇到的'com.github.dcendents.android-maven'插件未找到的问题。主要通过在项目的build.gradle文件中正确指定插件位置来修复此错误。
644

被折叠的 条评论
为什么被折叠?



