【问题标题】:Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found in android错误:(2, 0) 在 android 中找不到 ID 为 'com.github.dcendents.android-maven' 的插件
【发布时间】:2017-03-22 02:17:36
【问题描述】:

我使用以下库将材料设计添加到我的 android 项目中

https://github.com/boxme/SquareCamera

但是将其作为模块导入后,出现以下错误。我该如何解决它

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.

【问题讨论】:

  • 在你的项目 build.gradle 在依赖项中添加这一行:classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  • @Ankur 它不工作
  • 你能发布你的 build.gradle 吗?
  • 太长了不能在这里发帖......:)

标签: android maven camera android-camera


【解决方案1】:

更新 build.gradle 文件所在的 buildscript 依赖项 Your_Project/build.gradle

类路径'com.github.dcendents:android-maven-gradle-plugin:1.5'

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // This line you need to add

    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-12
    • 2023-04-10
    • 1970-01-01
    • 2018-04-09
    • 2014-08-03
    • 1970-01-01
    • 2014-08-09
    • 1970-01-01
    相关资源
    最近更新 更多