Playstore install app crashing, but direct android studio install runs well - android

My app display questions from database. The database is initially in the assets folder
but copied internally on first run.
However the error i am getting from playstore install is that the table does not exists.
I am not sure whats going on as the app perfectly runs on android studio with both actual device and emulator both.

Related

Working version of Android App not installing after downloading corrupted version

I installed a corrupted version of my android app on my phone and it did not work. I uninstalled it fixed the issue and then the app would still not launch but would launch in my emulator. I tried installing the app on the same model android device but another phone and the app ran flawlessly on it. I have tried clearing the cache and data of the app but to no avail. Any help would be great!
Try looking for the APK file on your Android device. Uninstalling the app doesn't delete the APK file. Sometimes the installer gets confused if there is an old APK file lying around. It's usually in the Internal storage > Downloads folder, but it may have been stashed somewhere else. If you find an old APK, delete it, and then try installing your app again.

Android Studio generating old version APK

I looked at other solutions for the above problem, but none of them seem to resolve my issue.
I am running AS 3.5.2, under Help/About/Check for new versions everything is showing as fully updated.
I am using Windows. When I plug my phone into my computer, it runs the latest updated version.
When I Build APK(s) under Build menu, and then install that version onto my phone, it is an old version.
Up until about 2 weeks ago it was building APKs fine, and today after making a few code changes (been 2 weeks about since I last made changes), it now has this issue.
What I've tried:
1. build.grade (app) - changed the version code and name to 2 from 1
2. Build menu - clean & rebuild project
3. Checked for updates and updated as needed
4. Run/Debug configurations - confirmed Gradle-aware Make is present (even removed then re-added)
So to add some more information. It turns out the Android Studio IS making the correct version. However, my phone just isn't loading it from the APK. This is what I have done:
I created a new version, 1.07, and with my phone plugged into my computer, it correctly runs this version on my phone, even when I unplug the phone and restart the newly installed app on the phone. I then navigated to the APK stored on our intranet (previously saved there as described earlier in this post), downloaded it and installed it on my phone. It has now reverted to v1.06 strangely. So on a different phone that had an older v1.04, I also downloaded the app from the intranet and installed it, and it showed v1.07. This shows that the APK WAS indeed correctly created. Then on a 3rd phone where the app was never previously installed, I installed it from the app, and it was v1.07. Again, correct version.
I then went to my 1st phone again, went into settings, went to the apps, and deleted the cache and data, then uninstalled it from my phone. I then went to downloads and APK's and deleted all previously downloads. So theoretically no trace should be left on my phone.
I then again downloaded the APK, and it is again v1.06!!!
I plug my phone into the PC (to use as the emulator) and it then correctly installs the correct v1.07 onto my phone.
What is happening...!!!? It is almost like it reverts to the previous v1.06 when I do a manually download and install of a v1.07 APK, but where is the v1.06 even coming from? Does the phone keep a history of the app versions?
Please help me make sense, and how to get it working. This app is for about 300 people in our company, hence me distributing the app over the intranet as a link.
Although this method is a bit vague and old fashioned, but it still works.
Step One: Run your android device as a virtual emulator.
Step Two: Run main.dart in your android device. This will install the app in your device.
Step Three: Go to Play Store and install this app called APK Extractor.
Step Four: Extract your APK from the app.
The APKs created through this are smaller and more efficient as compared to the ones created using Android Studio and work pretty well.

Will different machine installed Android app (via Android Studio) get a different signature?

I have an old app that I've written for personal use only, and never made as release to the Play Store. I installed it to my phone via Android Studio using run app command.
Many years later I want to modify the app, I try to pick up the app and run it again, this time using a different computer. I get the error saying:
"Installation failed since the device already has an application with the same package but a different signature. In order to proceed, you have to uninstall the existing application."
I definitely don't want to uninstall my app, this would cause me lost all the data I've entered to it. So I want to ask that isn't the debug keystore used by Android Studio to install app on device would create app of the same signature? Why it would be different? Is a different machine caused this issue? Thank you very much!
It sounds like you were using your debug certificate when you originally installed the app. This is unique to each machine when you install Android Studio.
You can copy the debug certificate from your old machine to your new one.
The file is located in your [userhome]\.android\debug.keystore

generated signed apk according to the documentation of react-native but it does not appear on my device

I've developed my first RN application and generated the apk as the react-native's documentation says and everything is fine, it does not show me any error, but when I install the apk in an emulator or on my smartphone the application does not appear anywhere, if I get into all applications to uninstall my application previously installed it is there but when I'm going to use it does not appear any icon or whatever. Any idea why I can not see my app? I used detach (Expo SDK)

apk shows file list instead of installing

Some users are reporting that when downloading my apk and clicking it opens up a file list of the contents of the apk. Nothing has changed with the apk and it was working fine a couple months ago but now doesn't work. I have multiple versions and they have tried to install all of them with the same problem. My Android 6.0 is working fine and i can't replicate it but another user running 6.0 on T Mobile tablet is experiencing it. It is hosted on the web for users to download and This is what happens when they click the downloaded APK once it is downloaded, any thoughts?
https://www.dropbox.com/s/myjg8sqw8njsqpv/Screenshot_2017-04-17-10-09-24.png?dl=0

Categories

Resources