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.
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.
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.
New to android development. Have an APK that I can download from my website and install works perfectly. Upload to google play and it crashes when the app tries to open. Really strange. Going to run a diff on the files but Im a 100% sure they are the same.
Any idea appreciated.
A while ago I wrote an app and I was able to install it both on an EVO phone and a Cruz tablet. I got the app to the EVO via email to a gmail account, and to the Cruz via USB download.
I recently made some changes to the app, again emailed the EVO and downloaded to the Cruz via USB. The EVO got the app and was able to install, but when I try to install on the Cruz (through Astro's Open App Manager), in the details I get a message saying 'Could not open /sdcard/download/ETA.apk as APK file. In the summary tab, there is no info, such as Name, lable, file version, etc. I've signed and zipaligned this apk like it's my job and the fact that it works on the EVO has got me flabbergasted. I've since tried going back to the original version, but I have the same issue.
Am I missing something?
It turns out that I had apparently NOT saved the original APK file. I built the APK using decreasing Platform/API levels until I got down to 1.6. I guess the Cruz is Android 2.0 (which I don't have ??). I didn't have to change any code; I did however have to change the manifest a bit (android:minSdkVersion="4").
After that it installs just fine.