android - versionCode is always overwritten to -1 -
android - versionCode is always overwritten to -1 -
i created new project in android studio , 1 of first things did move versioncode versionname attributes build.gradle manifest file convenience. weird warning saying:
this versioncode value (1) not used; written value specified in gradle build script (-1)
it started appearing in older projects too, it's not project specific problem. may happened when updated 0.8.14 , updated build tools, have no ide what. ideas on how prepare this?
according official doc, gradle overrides values in androidmanifest.
the default value in dsl object versioncode
-1.
then when gradle builds apk, overrides value in manifest , assign versioncode=-1
android android-studio gradle android-gradle build.gradle
Comments
Post a Comment