Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
我想在我的项目中使用 RecyclerViewLib,为此我下载了它并将其作为模块导入到我的空 "hello world" Android 项目中。我正在使用 android studio v1.0.1 和 sdk manager v24,这是我的 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'])
}
这是我的 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'
但是当我导入它时收到此错误消息:
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
我正在使用 Android Studios 1.0,在我将库导入我的项目后,它给了我同样的错误。然后我查看了库的 build.gradle 文件并删除了这一行,它起作用了:
apply from: 'gradle-mvn-push.gradle'
类似问题。
删除的行:
apply from: 'maven-push.gradle'
来自 build.gradle 并且能够成功同步。
检查库和项目 build.gradle 并在找到后评论此行
申请自:'<a href="https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle" rel="nofollow noreferrer">https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle</a>'
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()
}
}
我想在我的项目中使用 RecyclerViewLib,为此我下载了它并将其作为模块导入到我的空 "hello world" Android 项目中。我正在使用 android studio v1.0.1 和 sdk manager v24,这是我的 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'])
}
这是我的 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'
但是当我导入它时收到此错误消息:
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
我正在使用 Android Studios 1.0,在我将库导入我的项目后,它给了我同样的错误。然后我查看了库的 build.gradle 文件并删除了这一行,它起作用了:
apply from: 'gradle-mvn-push.gradle'
类似问题。
删除的行:
apply from: 'maven-push.gradle'
来自 build.gradle 并且能够成功同步。
检查库和项目 build.gradle 并在找到后评论此行
申请自:'<a href="https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle" rel="nofollow noreferrer">https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle</a>'
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()
}
}