Cannot upgrade old application by android studio generated apk file in Lollipop - android

I was installed old version(version 1) of my application from google play store in my phones. Now I would like to update this app to new version(version 2), so, I generated new apk file by using android studio and I upload this generated apk to google drive. Then download and install from my several devices(Android 5.1.1, and Android 4.2.2).
In android 4.2.2, I can install the downloaded apk and my application was upgraded to version 2 successfully.
In Android 5.1.1, I can click on install button, after that show the "App not installed" error message and the application was not upgraded to new version(version 2).
Could you please give me some advice?
Please see the attachment picture of android 5.1.1 device.

I think it is bug. It happened to me once while upgrading to a new version. The problem occurs when there are 2 users in Android OS(i.e. Settings>Users. Probably in your case, guest user must be present). So when app was previously installed, it must be installed for both primary and guest user. So when Android OS tries to uninstall the app to upgrade, it only uninstalls app for primary user and not for guest user. So the app is still present in the OS but not for primary user preventing installation of the new app. At least this is what I think it is.(I am using a Moto G)
But I have never encountered this bug when upgrading from playstore. It only happened when trying to upgrade app by installing apk from external source. I hope it helps...

When you upgrade your application and build for release, make sure that you sign your application with the same keystore you used to sign your previous application version.
When you use new keystore to sign your new application version and attempts to install it into the device with your application(old version) already installed, android will halt the installation and you can tell exactly why it does not install by looking at the logcat.

Related

Beta users prompted to download Public release App of Same Version

I have gone through two situations and finding hard to understand the issue/working behaviour. Wish some one could help please!!
I am part of Android Beta testing program and installed the Beta build onto my device, say version 2. I was prompted to download App from Play Store which has version 1 (Version 2 is in Beta closed testing). I am quite confused with the process, higher version being prompted to download lower version. Should this be the expected behaviour and how does the flow work really?
One of my colleague was part of Android Beta testing program and had the Beta build (Version 2) installed onto his device. Later App was released to Play Store (No build exist in Beta Closed testing). Build in App Store and Beta build in Device are Version 2, but the user is Prompted to download the App on Every launch. User has deleted Beta build and downloaded App from Play Store, but still the prompt appears to download. Why is this behaviour experienced and how to avoid this issue please?
Got the issue sorted, it was to do with App itself, We have Force upgrade service in our App and was mistakenly enabled for latest version which prompted users to download on every launch.

How to install newer test version of my installed android app without uninstalling it?

I have my application in Google Play, I've downloaded and installed it on my phone.
I'm also currently working on update of this application, and whenever I want to install my .apk file on my phone it shows me, that I can't do it, because the app is already here.
Where in Eclipse can I set some settings, which will allow me to install my updated app without installing original one?
EDIT
I want to have two versions on my device at the same time.
One simple solution is to change the package name, since that's how the OS identifies the .apk. Indeed, the package is unique to the Market: how does an android phone(or market) recognize an app
You can not install and run the app from eclipse because the app installed on the device (the one from play store) is signed with a different key.
When you export your app you sign the apk with a specific key and when u run it from eclipse you sign it with a different key - the debugkey.
If you HAVE to install another version on the device without uninstalling the old one from the device (the one you got from the play store) you should:
1.export your app and sign it with the same key you signed the app you uploaded to the play store.
2.upload the exported apk to the device.
3.install it.
EDIT:
If you want to versions on the same device you should change the app package name.

Android update application

I want to ask a little issue which I found out why testing my application. When I update my application from Android Market after I upload new apk, everything is working fine without any errors. But when I try to install older apk manually, not from market and after that install newer version of it again not from market, there are some errors which I don't get if I update my app from market.
Any ideas if it's normal, because as I know Android market app takes care of installing the updates and etc.
it's normal if in your phone have a debug version ,
you must unistall old version on your phone, so after you can install the apk ( market version) manually .
for market update , you can update it only if your app is gratis.

Not able to install android apk file even after signed it with my own private key using eclipse

I have created sample android application(apk) and signed it with my private key using eclipse ADT.But i am not able to install it on Android handset(HTC Desire,android version 2.2).
If you've previously installed the application with a debug certificate, then you have to un-install the old version first since the certificates won't match.
If that isn't it, do you get any errors as to why? Are you installing over adb or from the sdcard (after downloading or otherwise transferring it to the device)?
Have you enable third party applications on your device by Settings->Applications, then checking the Unknown sources box?

Unable to install newly created Android App

I am a newbie to Android world and started learning it few days back. I developed a sample application Using Eclipse and ADT pluggin. Checked it on Emulator, it's working. But when I exported that App as *.apk and tried to install it in my phone (Samsung Galaxy S running 2.2) ... it gives error that "Application not installed"
Can somebody throw some light on this ?
If the one on your device is signed with another key (e.g., debug), you
won't be able to install the other one over the top. You're not allowed to replace an application with another that has a conflicting signature. Uninstall the old APK, then try again.
I'm a newbie too & i had the same issue.Just uninstalled the previous app, and freshly exported a new apk file with keystore information. Then i was able to install it the newer version.
Did you enable "Unknown Sources" in the Applications Settings menu on your phone?

Categories

Resources