programing tip

오류 : 해당 속성 없음 : GROUP. 클래스 : org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

itbloger 2020. 7. 26. 12:38
반응형

오류 : 해당 속성 없음 : GROUP. 클래스 : org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer


내 프로젝트에서 RecyclerViewLib 을 사용하고 싶어서이를 다운로드하여 빈 "hello world"Android 프로젝트에 모듈로 가져 왔습니다. SDK 관리자 v24를 사용하여 android studio v1.0.1을 사용하고 있으며 이것이 내 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'])
}

그리고 이것은 내 라이브러리 / 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'

그러나 가져올 때이 오류 메시지가 나타납니다.

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

누구 든지이 문제에 대해 나를 도울 수 있습니까?


지정된 프로젝트의 build.gradle에서이 줄을 제거하십시오.

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

비슷한 문제가 발생했습니다.

내 앱에 QuickReturn 기능을 포함 시키려고했습니다 : 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'

Similar issue.

Removed line:

apply from: 'maven-push.gradle'

from build.gradle and was able to sync successfully.


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'


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()
    }
}

참고URL : https://stackoverflow.com/questions/28450549/errorno-such-property-group-for-class-org-gradle-api-publication-maven-intern

반응형