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

AndroidAndroid StudioGradleAndroid Gradle-PluginImport Module

Android Problem Overview


I want to use RecyclerViewLib in my project and for that I downloaded it and imported it as a module to my empty "hello world" Android project. I am using android studio v1.0.1 using sdk manager v24 and this is my app/build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 17
buildToolsVersion "19.1.0"

defaultConfig {
    applicationId "com.example.mk.dragdrop4"
    minSdkVersion 14
    targetSdkVersion 17
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}

and this is my library/build.gradle

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'

But when I import that I'm getting this error message:

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

Can anyone help me about this problem?

Android Solutions


Solution 1 - Android

Remove this line from the build.gradle on the specified project

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

Solution 2 - Android

I have experienced a very similar problem.

I tried to include the QuickReturn feature into my app : https://github.com/felipecsl/QuickReturn

I'm using Android Studios 1.0 and after I imported the library into my project, it gives me the same error. I then looked at the build.gradle file for the library and removed this line and it worked:

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

Solution 3 - Android

Similar issue.

Removed line:

apply from: 'maven-push.gradle'

from build.gradle and was able to sync successfully.

Solution 4 - Android

check library and project build.gradle and comment this line if you found

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle';

Solution 5 - Android

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'  // include latest gradle version and if project build with older version can update or can user same version

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmaxView Question on Stackoverflow
Solution 1 - Androidwilliamj949View Answer on Stackoverflow
Solution 2 - AndroidSimonView Answer on Stackoverflow
Solution 3 - AndroidRobView Answer on Stackoverflow
Solution 4 - AndroidmahendraView Answer on Stackoverflow
Solution 5 - Androideranda.delView Answer on Stackoverflow