引起这个错误的原因是因为你在,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.
最新推荐文章于 2021-04-11 15:11:23 发布