android - Could not find property 'VERSION_CODE' -


i want use library project , got error when try open library (floatingactionbutton) source github.

i download zip project when tried open source code understand it, got error:

error:(10, 0) 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' 

import library module, change versioncode , versionname random values, add reference project - add dependencies compile project(":library") , remove:

apply from: '../gradle-mvn-push.gradle'


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -