Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found
我使用以下库将 material 设计添加到我的 android 项目
https://github.com/navasmdc/MaterialDesignLibrary
但是将其作为模块导入后,出现以下错误。
我该如何解决
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
导入模块依赖中的@arr文件
首先,您可以将此库用作依赖项,只需将此依赖项添加到 module/build.gradle
即可:
dependencies {
compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
}
如果你想在本地作为模块导入,你必须在你的module/build.gradle
中添加这部分:(这部分添加在库的the top-level file中)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.+'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}
注意这个库没有更新上次的支持库,也没有使用新的设计支持库。
在 project.gradle 依赖项中添加这些行:
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
如果您添加:
classpath 'com.github.dcendents:android-maven-plugin:1.2'
有时它不起作用,所以添加:
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
要完成,请将以下行添加到导入模块的 build.gradle 文件中。
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}
享受编码。
我使用以下库将 material 设计添加到我的 android 项目
https://github.com/navasmdc/MaterialDesignLibrary
但是将其作为模块导入后,出现以下错误。
我该如何解决
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
导入模块依赖中的@arr文件
首先,您可以将此库用作依赖项,只需将此依赖项添加到 module/build.gradle
即可:
dependencies {
compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
}
如果你想在本地作为模块导入,你必须在你的module/build.gradle
中添加这部分:(这部分添加在库的the top-level file中)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.+'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}
注意这个库没有更新上次的支持库,也没有使用新的设计支持库。
在 project.gradle 依赖项中添加这些行:
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
如果您添加:
classpath 'com.github.dcendents:android-maven-plugin:1.2'
有时它不起作用,所以添加:
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
要完成,请将以下行添加到导入模块的 build.gradle 文件中。
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}
享受编码。