android - Could not find property 'VERSION_CODE' Error:(21,0) -


i trying import project in android studio 1.5.1. firstly removed 1 error of 'com.android.application' not found error has been risen. enter image description here

gradle sync failed: not find property 'version_code' on productflavor_decorated{name=main, dimension=null, minsdkversion=defaultapiversion{mapilevel=14, mcodename='null'}, targetsdkversion=defaultapiversion{mapilevel=23, mcodename='null'}, renderscripttargetapi=null, renderscriptsupportmodeenabled=null, renderscriptndkmodeenabled=null, versioncode=null, versionname=null, applicationid=com.fractalwrench.androidbootstrap.sample, testapplicationid=null, testinstrumentationrunner=null, testinstrumentationrunnerarguments={}, testhandleprofiling=null, testfunctionaltest=null, signingconfig=null, resconfig=null, mbuildconfigfields={}, mresvalues={}, mproguardfiles=[], mconsumerproguardfiles=[], mmanifestplaceholders={}}.

the problem version_code , version_name. guess missing in project. can hardcode version code , version name -

versioncode 21 versionname "1.0" 

or can make dynamic -

def versionmajor = 1 def versionminor = 1 def versionbuild = 0 defaultconfig {   versioncode versionmajor * 1000000 + versionminor * 10000 + versionbuild * 100   versionname "${versionmajor}.${versionminor}.${versionbuild}" } 

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -