机器人工作室。 build,gradle - 导入项目后找不到属性

标签 android gradle

导入某个项目后出现以下错误。 该项目最初取自 GitHub。

它发生在升级到 gradle 2.10 之后

https://github.com/sephiroth74/HorizontalVariableListView

这是我遇到的错误。

Error:(3, 0) Could not find property 'GROUP' on project ':library'.
<a href="openFile:C:\Users\Edi\Google Drive\Android\AndroidStudio_Projects\HorizontalListView\library\build.gradle">Open File</a>

这是我的build.gradle文件

apply plugin: 'android-library'

group GROUP
version VERSION_NAME

android {
    compileSdkVersion 19
    buildToolsVersion "19.1"

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 19
        versionCode 1
        versionName version
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:19.1.+'
    compile 'it.sephiroth.android.library.horizontallistview:hlistview:1.2.2'

}


apply from: 'https://raw.githubusercontent.com/sephiroth74/gradle-mvn-push/master/gradle-mvn-push.gradle'

最佳答案

    in the settings.gradle their is
 include ':app', ':library'

    he is not able to find that library edit it and write
    include ':app'

关于机器人工作室。 build,gradle - 导入项目后找不到属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36839778/

相关文章:

java - gradle 如何决定 file.encoding JVM 系统属性?

安卓工作室 : Resource file does not exist in library project

java - Flutter build apk 命令抛出错误并且未构建 apk

java - IntelliJ IDEA 注释处理不会在配置的文件夹中生成源

Android数据库大于1MB

java - 我无法让媒体播放器在 android studio 中工作

android - 以编程方式设置文本时,如何避免出现自动完成下拉菜单?

android - 错误 :Execution failed for task ':app:transformClassesWithPreJackRuntimeLibrariesForDebug'

java - Android - 带有自定义 CursorAdapter 的 Listview,运行异步任务会崩溃

android - 将 kotlin 数据类转换为 json 字符串