*> For Market, does the versionCode have to be a "literal" integer directly inside the manifest*
AFAIK this is the case... I remember trying to do something like this a long time ago and ran into the same problem. Ever since then I have just dealt with remembering to update the value every time. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 16, 2011 at 7:17 AM, andrew <[email protected]> wrote: > In my Android app I: > > - generate an incrementing build number (integer) using a script as > part of my build (uses Integer from SVN revision) > - I generate an Android resource file with it defined as an integer: > <?xml version='1.0' encoding='utf-8'?><resources><integer > name='version_code'>399</integer></resources> > > - I show that on the UI using the resource generated above > > - I reference the integer in the Manifest for the versionCode element > <manifest ... stuff deleted.... > android:versionCode="@integer/version_code"> > > All that works fine, but when I attempt to upload to Market I get this > error: > > "The file is invalid: ERROR getting 'android:versionCode' attribute: > attribute is not an integer value " > > Question: > For Market, does the versionCode have to be a "literal" integer > directly inside the manifest, or is there some way to reference an > externally generated integer and not be touching my manifest all the > time (manually or automatically). > > thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

