I've noticed while developing an app, that my storage space keeps filling up. Repeated deployments from Android Studio seem to be slowly filling up the internal storage, as if the older iterations of the app are not getting uninstalled. I have specified a grade-aware Make (:app:uninstallAll) to attempt to alleviate this but I've had no success.
Any ideas?
EDIT
Apologies, I know this question had lot of potential scope. Accepted answer to manually manage the app installation. Using ADB-IDEA plugin to help with this. Will do for the moment. Thanks all.
When you're debuggin with instant run, Android Studio makes the changes in cache, that's why the internal storage is filling up.
Try this:
Delete the data of the app.
Unninstall the app.
In Android Studio, Menu Build -> Build APK and install it manually.
If you are affraid that your apk is taking too much space, you can use the APK Analyzer
Related
I had an issue with my Computer and had to format it. An app was completely erased because my version control was only locally. The app exists on the Google Play store and I have access to the Android App Bundle. Is there a way to recover the flutter code?
sadly, practically: no... you may try to "decompile" APK (every "type" of abi/density/lang etc. splits), but still this will give you some Android-specified code, probably still messy, even without minifying. and you are seeking full flutter code, thats impossible
note that: if you could do that, got full code from "compiled" APK/bundle then anyone could do that, steal your code, make clones etc. this "possibility" would be just very unsecure
I followed steps from this tutorial:
Exported .apk can install on all my devices, but when I uninstalled and then installed my phone said 'App not installed'. My clients had the same problem even from the first installation.
There are no multiple users on my phone or any other so I can't do 'uninstall for all users'.
After that I tried to export from Android Studio with same keystore and passwords and it just created more problems with the same initial problem and that's 'App not installed'.
After that I resolved many problems that Android Studio made with updates and I still can't export it properly from Visual Studio Code.
My head hurts.
Edit: Now I've tried jarsigner and zipalign and it still doesn't want to install.
EDIT2: Issue goes away when I move .apk to internal storage. Is this a legit solution?
This is a very open ended question and it's quite hard to give a clear answer without further information. But usually 'App not installed' error happens because of following reasons (among others)
Insufficient storage
Corrupted/Contaminated App file
SD Card not mounted in the device
Storage location
Corrupt storage
Application Permission
Incorrect file
things you can try
Do the tried and tested "Have you turned it off and on again"?
Delete unnecessary files/Apps
Reset All the App Preference
Go to Settings on your Android device.
Open Apps or Apps manager.
check for All Apps.
Tap on the menu icon.
Click on ‘Reset App Preferences’.
Clear Data and Cache of Package Installer
Open setting on your Android device.
Look for the option called Apps or Manage apps and tap on it.
Check for the Package Installer App under system Apps
You will find two option of Clear data and Clear cache. (For Android Marshmallow 6.0 users check for option Storage to clear data and cache)
Clear the data and cache to solve the problem.
You could also try changing the bundle id and see if that would do the trick
Hope this helped
So i'm gonna be as elaborative as much as I could..
I have a Xperia L with latest firmware and I was trying to set some third party apps to system apps, and I succeeded after some time I thought that if I could set App updates to system app (meaning removing the older version) and I succeeded again but when I was doing the same to Chrome I stumbled upon to a problem..
So before I tell you what was the problem i'll tell you how I did it..
1.I updated Chrome.
2.I moved the original. apk from "system/app" dir to My SD so that it can be changed to new one. (My set is ROOTED)
3.Then I moved the. apk from "Data/app" folder to "system/app" folder.
4.And renamed it to the Original. apk 's name.
5. And changed the Read/Write Permissions as it should be.
6.That's that.
So after that I tried launching chrome but it said
"Chrome failed to start due to an Unexpected Error"
but with above methods I replaced a lot of apps like Walkman, Calendar, PlayStore, Play Services and some i don't remember...
and they all worked fine even after restarting it..
so then I uninstalled Chrome with Titanium Backup since it was a system app..
and then I tried the same with Album app.
I replaced it's. apk and tried it but it started crashing.. so I deleted it. too and placed the original one back..
and restarted my set..
But now it is stuck on Black Screen after Sony logo...
I know I can Flash the ROM to get going but if there's any other way to do so please let me know..
now i know it's kinda two questions in one but I really need to know both..
Thanks in advance...
You can use Link2SD or other root apps to add them automatically to the system image
Recently I had a small break of my app project, during this "free time" I accentily deleted the app code. I had it stored in my downloads folder which from time and time I clean up, in a rough fashion.
Now I still have the app on my mobile and managed to get the app file named: "com.example.username.projectname" from my mobile to my laptop. I only used my phone as a emulator and can run the code fine on my mobile. Now is there any way of recovery for my project so I can start to work on my project again. Or is the only option to start all over again?
You said that you had the app in the mobile. Take a backup of the apk and try decompiling the apk using available apk decompiling tools
In the end I decided to rebuilt my app from scratch. The difficulties to reverse engineer the APK file were to many. Trying to restore the file via deleted file restores software didn't resolve the problem either. Because of this experience I backup my app every time when I make a change to it.
This is my first questions on SO, but I would first like to thank the community for helping me along the way in creating a few Android apps. I am not a programmer by profession, and most of the stuff I make is just for fun, but one Android app is a real project that I created for a client, and I've run into some real trouble and need some help.
The app I made basically takes in some data, stores it into an SQL database, and when necessary, uses queries to pull various information from the DB, and displays it. If any adjustments need to be made, I make them and just send them another .apk. No problem, until now...
I recently upgraded to Windows 10, doubled my laptop's RAM and replaced my hard drive with an SSD, and did a refresh of the OS. Everything, including Android Studio, runs like a dream now!!! I had a request from my client to make a few adjustments, so I recopied my backed up source code to my projects folder, opened the code, made the modifications, and resent the .apk to my client. They are getting the following message:
"X App not installed.
An existing package by the same name with a conflicting signature is already installed."
The only changes I made to the app were adding a table to the database (and upgrading the DB version number, of course), and modified some layouts and a couple of methods and calculations, etc. Nothing more. I have searched up and down and have even replicated the same error on my tablet and can't find a way around it. My client currently has a few months worth of data input into the app, so they can't just uninstall it and do a new app installation. Is there anything I can do at this point? Also, I never made any custom key signature, just programmed, made .apk, and have sent numerous updates without issue. Any help would be greatly appreciated. (I have all my project folders and .apks backed up for all the different versions that I have sent)
Thank you!
Your best bet at this point, assuming you can't find/get the original key, is to use a backup program (or adb pull worst case) to backup his /data/data/ folder. Then you can uninstall the original app and reinstall the new version. Then you can restore/adb push the old folder's contents to the phone to restore the data files. This may require rooting it.
If possible I would test this on another phone first, to make sure it works, since you only get 1 shot at this. I would also save your key in your source control repo in the future.