Android导入库报错DefaultGroovyMavenDeveloper
Android Import library error DefaultGroovyMavenDeveloper
我是使用 android studio 的 android 应用程序开发新手,我正在尝试使用 https://github.com/emilsjolander/StickyListHeaders 的粘性列表 headers。我通过 File -> New -> Import Module 执行此操作,然后添加依赖项。但是我收到错误
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer
我的项目build.gradle是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "testingapp.dylanzammit.com.anothernewproj"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'se.emilsjolander:stickylistheaders:2.7.0'
}
如果您想将库添加到 Android studio 中的项目中,可以通过三种不同的方式进行。请阅读此 link 。在此 post 中,我解释了如何在 Android studio 中导入 JAR 文件,并通过屏幕截图逐步解释了所有可能的方法。希望对你有帮助。
我是使用 android studio 的 android 应用程序开发新手,我正在尝试使用 https://github.com/emilsjolander/StickyListHeaders 的粘性列表 headers。我通过 File -> New -> Import Module 执行此操作,然后添加依赖项。但是我收到错误
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer
我的项目build.gradle是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "testingapp.dylanzammit.com.anothernewproj"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'se.emilsjolander:stickylistheaders:2.7.0'
}
如果您想将库添加到 Android studio 中的项目中,可以通过三种不同的方式进行。请阅读此 link 。在此 post 中,我解释了如何在 Android studio 中导入 JAR 文件,并通过屏幕截图逐步解释了所有可能的方法。希望对你有帮助。