Android Studio Error:(2, 0) apply plugin: 'com.github.dcendents.android-maven'报错

来源:互联网 发布:淘宝店关注链接 编辑:程序博客网 时间:2024/03/29 13:06

Android Studio遇到导入项目报错:

Error:(2, 0) apply plugin: 'com.github.dcendents.android-maven'报错

错误定位Module中的

apply plugin: 'com.github.dcendents.android-maven'

在Project下那个build.grade里面添加全局依赖

buildscript {repositories {    jcenter()}dependencies {    classpath 'com.android.tools.build:gradle:2.1.2'    //1.自动化maven打包插件    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'    //2.自动上传至Bintray平台插件    classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0"    // NOTE: Do not place your application dependencies here; they belong    // in the individual module build.gradle files    }}

点同步报错消失

0 0
原创粉丝点击