导入某个项目后出现以下错误。 该项目最初取自 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/