导入某个项目后,我收到以下错误。 该项目最初来自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'
答案 0 :(得分:1)
in the settings.gradle their is
include ':app', ':library'
he is not able to find that library edit it and write
include ':app'