码迷,mamicode.com
首页 > Windows程序 > 详细

Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer

时间:2015-07-29 11:58:35      阅读:1295      评论:0      收藏:0      [点我收藏+]

标签:

注:参考:http://stackoverflow.com/questions/28450549/errorno-such-property-group-for-class-org-gradle-api-publication-maven-intern

问题大致出在库工程 library/build.gradle 文件中的 apply from这句

apply plugin: ‘com.android.library‘

android {
    compileSdkVersion 17
    buildToolsVersion "19.1.0"

    defaultConfig {

        minSdkVersion 7
        targetSdkVersion 17
        versionCode 1
        versionName "1.0"
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.pro‘
        }
    }
}

dependencies {
    compile ‘com.android.support:support-v4:20.0.0‘
    compile fileTree(dir: ‘libs‘, include: [‘*.jar‘])
}

apply from: ‘https://raw.github.com/twotoasters/gradle-mvn-push/master/gradle-mvn-push.gradle‘

或者如

apply from: ‘gradle-mvn-push.gradle‘

删掉这行即可

Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer

标签:

原文地址:http://www.cnblogs.com/uinique/p/4685384.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!