【问题标题】:Android Import library error DefaultGroovyMavenDeveloperAndroid 导入库报错 DefaultGroovyMavenDeveloper
【发布时间】:2016-02-16 08:45:38
【问题描述】:

我是使用 android studio 的新手 android 应用程序开发人员,我正在尝试使用来自 https://github.com/emilsjolander/StickyListHeaders 的粘性列表标题。我通过 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 libraries


    【解决方案1】:

    如果您想将这些库添加到您在 Android Studio 中的项目中,您可以通过三种不同的方式来完成。请阅读此链接https://stackoverflow.com/a/35369267/5475941。在这篇文章中,我解释了如何在 Android Studio 中导入您的 JAR 文件,并通过屏幕截图逐步解释了所有可能的方法。希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-02
      • 1970-01-01
      • 2014-07-21
      • 2017-09-24
      • 1970-01-01
      • 2017-11-07
      • 1970-01-01
      相关资源
      最近更新 更多