I want to use this library for my project, and I got an error when I try to open this library (FloatingActionButton) from Github.
I load this project as a zip, when I tried to open the source code to understand it, I got this error:
Error:(10, 0) Could not find property 'VERSION_CODE' on project ':library'.
Add build.gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
}
buildTypes {
release {
minifyEnabled false
debuggable false
}
debug {
minifyEnabled false
debuggable true
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
apply from: '../gradle-mvn-push.gradle'
Artem source
share