certificate key problem

i have a problem that when i want to update my app(with original certificate) in market it shows
(Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years.)

and if i creat new certificate it show
The apk must be signed with the same certificates as the previous version.

what can i do please
 

johnaaronrose

Active Member
Licensed User
Longtime User
Version Name

You are using the debug signing key. See this tutorial: Signing your application before uploading to Android market

I've followed the tutorial & created a new keystore file for my app & then compiled the app again to create a new .apk file. When I now try to upload the .apk file, I get "Google Play requires versionName to be set in AndroidManifest.xml". I've looked at the AndroidManifest.xml file in the project's Objects folder (presumably the same as the one in the .apk file because they have the same time & date stamp) & it shows versionName as "" (versionCode is 1 i.e. the same as I set from B4A's Project - Application Version menu entry). What do I do?
 
Last edited:
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
Problem solved

See Project -> Application Version.

Thanks, Erel. I set Project-ApplicationVersion-VersionString to 1 which resulted in the versionName being 1: I didn't expect that VersionString would become versionName. Uploaded OK to Google Play.

PS AndroidManifest.xml now shows:
android:versionCode="1"
android:versionName="1"
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…