我想在我的项目中使用RecyclerViewLib,为此我下载它并将其作为模块导入到我的项目中空的“hello world”Android项目。我使用过Android Studio 1.0.1使用SDK管理器V24,这是我的应用程序/的build.gradle错误:没有这样的属性:GROUP for class:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
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
任何人都可以帮我解决这个问题吗?
喜@goonerdroid这是工作注释此行谢谢。但是你能解释更多关于这条线的信息吗? – max 2015-02-11 09:41:49
图书馆有gradle任务上传到Maven存储库,需要为gradle环境设置一些属性,在您的项目中,你不需要/需要。 – goonerDroid 2015-02-11 09:48:47
帮了我两次:) – NarendraJi 2015-11-06 07:51:51