Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovy

 
 
见下文的参考build.gradle,添加最后一句话会报错:
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovy

具体解决方法:注释掉,具体原因及其描述见如下链接:
http://stackoverflow.com/questions/28450549/errorno-such-property-group-for-class-org-gradle-api-publication-maven-intern
 
 
参考文档:
build.gradle:
apply plugin: 'com.android.library'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 6
        versionName "1.1.2"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:recyclerview-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'com.android.support:cardview-v7:23.1.0'
    compile 'me.grantland:autofittextview:0.2.0'
    compile 'com.bartoszlipinski:viewpropertyobjectanimator:1.2.0'
}
//apply from: 'maven-push.gradle'


你可能感兴趣的:(Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovy)