Publishing new apk version in Android

You must Login before you can answer or comment on any questions.

Hello, this may have been asked before but wanna get updated and clear answer from the team. I just published my Android app version1 in google play. I plan to update with new version 1.1. But google play keeps on prompting that I need to upload new version after I uploaded version 1.1 - "You need to use a different version code for your APK because you already have one with version code 1."

How do I update the Ti with new version to ensure that google play will accept my apk? I only see the following in Ti interface where version is mentioned:

manifest

#appname: Appname
#appid: com.Appname.Appname
#type: mobile
#guid: 8c1212174-0b9a-4a58-81cb-868425940d6c
#version: 1.1
#publisher: not specified
#url: not specified
#image: appicon.png
#desc: not specified
tiapp.xml
<?xml version="1.1" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.Appname.Appname</id>
    <name>Appname</name>
    <version>1.1</version>
    <publisher>me</publisher>
    <url>http://www.xyz.com</url>
    <description>not specified</description>
    <copyright>2013 by Appname</copyright>
    <icon>appicon.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-style>default</statusbar-style>
    <statusbar-hidden>false</statusbar-hidden>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>121212121212121212</guid>
    <property name="ti.ui.defaultunit" type="string">system</property>
    <iphone>
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
        </orientations>
        <orientations device="ipad">
            <orientation>Ti.UI.PORTRAIT</orientation>
            <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
    </iphone>
    <android xmlns:android="http://schemas.android.com/apk/res/android"/>
    <mobileweb>
        <precache/>
        <splash>
            <enabled>true</enabled>
            <inline-css-images>true</inline-css-images>
        </splash>
        <theme>default</theme>
    </mobileweb>
    <modules/>
    <deployment-targets>
        <target device="blackberry">false</target>
        <target device="android">true</target>
        <target device="ipad">false</target>
        <target device="iphone">false</target>
        <target device="mobileweb">true</target>
        <target device="tizen">false</target>
    </deployment-targets>
    <sdk-version>3.1.0.GA</sdk-version>
</ti:app>

— asked 10 months ago by Renato Tan
0 Comments

2 Answers

Accepted Answer

You are missing the manifest section in your TiApp.xml

<?xml version="1.1" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.Appname.Appname</id>
    <name>Appname</name>
    <version>1.1</version>
    <publisher>me</publisher>
    <url>http://www.xyz.com</url>
    <description>not specified</description>
    <copyright>2013 by Appname</copyright>
    <icon>appicon.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-style>default</statusbar-style>
    <statusbar-hidden>false</statusbar-hidden>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>121212121212121212</guid>
    <property name="ti.ui.defaultunit" type="string">system</property>
    <iphone>
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
        </orientations>
        <orientations device="ipad">
            <orientation>Ti.UI.PORTRAIT</orientation>
            <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
    </iphone>
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest android:versionCode="1" android:versionName="1.0.0">
     </manifest>
    </android>
    <mobileweb>
        <precache/>
        <splash>
            <enabled>true</enabled>
            <inline-css-images>true</inline-css-images>
        </splash>
        <theme>default</theme>
    </mobileweb>
    <modules/>
    <deployment-targets>
        <target device="blackberry">false</target>
        <target device="android">true</target>
        <target device="ipad">false</target>
        <target device="iphone">false</target>
        <target device="mobileweb">true</target>
        <target device="tizen">false</target>
    </deployment-targets>
    <sdk-version>3.1.0.GA</sdk-version>
</ti:app>

— answered 10 months ago by Nick Milner
answer permalink
2 Comments
  • Look for

    <manifest android:versionCode="1" android:versionName="1.0.0">

    — commented 10 months ago by Nick Milner

  • Thanks NICK! Works well and able to publish my new version. :)

    — commented 10 months ago by Renato Tan

Hi Renato,

Nick is right you have to change the "Android:versionCode="1.1" just copy and paste the below code in TiApp.xml and do changes

<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest android:versionCode="11" android:versionName="1.1"
            package="com.Appname.Appname" xmlns:android="http://schemas.android.com/apk/res/android"/>
    </android>
and clean the project & try to make build and check.... let us know for more help........

Your Answer

Think you can help? Login to answer this question!