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

 
  
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        //1.自动化maven打包插件
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        //2.自动上传至Bintray平台插件
        classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
        classpath "com.github.dcendents:android-maven-gradle-plugin:1.5"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
如果studio警告 A newer version of com.jfrog.bintray.gradle:gradle-bintray-plugin than 1.0.1 is available: 1.7.3 less... 那么 就根据它的提示把版本号改成studio推荐的版本号就行,否则失败
 
  
借鉴http://blog.csdn.net/z_zT_T/article/details/52190096

你可能感兴趣的:(android)