yenael
Aspiring developer
Profile
Posts: 100
Reg: Sep 17, 2013
Detroit
2,950
01/07/16 07:20 AM (8 years ago)

Version codes

I found the post on adding version codes lines on manifest file, but is there somewhere else that this needs to be changed or should i have done it somewhere before adding the project to Android Studio to be compiled into apk? Google play keeps saying i got the same version code, but i changed the code and the name.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/07/16 07:28 AM (8 years ago)
Yeah you have to change it in the manifest. What do you have on the play store and what do you have in the manifest?
 
yenael
Aspiring developer
Profile
Posts: 100
Reg: Sep 17, 2013
Detroit
2,950
like
01/07/16 07:31 AM (8 years ago)
Play store has version code 1, version name 1.0 I changed to Version name 1.1 In manifest of new version..
 
yenael
Aspiring developer
Profile
Posts: 100
Reg: Sep 17, 2013
Detroit
2,950
like
01/07/16 07:31 AM (8 years ago)
With version code 2
 
yenael
Aspiring developer
Profile
Posts: 100
Reg: Sep 17, 2013
Detroit
2,950
like
01/07/16 07:55 AM (8 years ago)
these are the first lines of my new version manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ehcsalon" android:versionCode="2" android:versionName="1.1">
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/07/16 08:44 AM (8 years ago)
Check out this tutorial I wrote a while back about the manifest file. It should answer your question...and more! https://www.buzztouch.com/forum/thread.php?tid=C2FCEFDC22B3A9C1ADABE3B Mark
 
yenael
Aspiring developer
Profile
Posts: 100
Reg: Sep 17, 2013
Detroit
2,950
like
01/07/16 08:52 AM (8 years ago)
Okay, I placed correctly in my Android Manifest the first time. However, when I went back to AStudio, I think complained that the version code is not changed in the gradle, it keeps putting it back to version 1, overriding my manifest file. How do you change the value in Gradle without causing mercury retro grade problems.lol
 
yenael
Aspiring developer
Profile
Posts: 100
Reg: Sep 17, 2013
Detroit
2,950
like
01/07/16 09:32 AM (8 years ago)
It worked by changing the gradle build for app. It kept saying that it will override the manifest file version, so I went and changed it there on gradle file and published the app in Google Play fine. Just in case someone has this strange issue too.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/07/16 09:50 AM (8 years ago)
Yes, if you downloaded new project code from buzztouch then the change would be made in the gradle and/or the project structure settings area. Old projects can still be changed in the manifest.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.