Android app never fully uninstall - SQLite database remains - android

I'm using a sqlite database as an asset in my Android project that I'm trying to manually update, but my older version always comes back.
On my Pixel 5 I tried to:
Delete the app before reinstalling from Visual Studio debugger.
Go in the phone's storage, find the app and delete cache and data, then proceed to uninstall and finally reinstall from Visual Studio.
Reboot the phone after uninstalling.
In Visual Studio I tried to:
Cleaning entire solution & rebuilding it after deleting older database and after adding the new one.
Do my first step, close Visual Studio delete Bin & Obj folders and relaunch VS.

Found that when reinstalling the app, my phone would use a backup it automatically did on my Google Drive.
I had to delete the backup, and then it was working fine.

Related

Unable to edit or view code from Android Studio

Unable to view the source code in android studio, while VS Code opened java/XML fine, I restarted with clear cache, UTF-8 to other, sync with file, deleted .idea and restarted but still getting this problem.
May I know is this coming from a virus or any other malware affected android studio / Windows 11...
Even I uninstalled android studio and reinstalled it today but how this coming again is my question...
The given image was my files which were unable to edit or even change a sentence may rewrite unsaved java files with this text.
I already encountered the same issue, I had tried all solutions (delete .idea dir, invalidate cache) but nothing worked.
I had finally uninstall and reinstall Android Studio, the problem had disappeared

i am not able to delete android studio completely from my device

I am a flutter developer and I wanted to clear reinstall the android with the latest version so I deleted android studio from the control panel from my windows os and then when I reinstalled my android studio everything got back as is when I deleted and I don't know why but then I deleted all related files from my storage I deleted filed form program files, the user (.android and .gradle ) then also from app data also from local and roaming and then I tried to reinstall it but the thing was as it is and I have done this several times but I can't seem to understand why it is happening
First of all Uninstall android studio from the Settings.
Go to the location where your SDK is installed. In my case, I found it here C:\Users\ACER\AppData\Local\Android. Delete the android folder.
Now in your user files, delete the .android, .gradle, such folders.
Now go to AppData and delete the folder named Google.
Restart your PC once.
Note: You can also delete the project files if you want.
If this doesn't help try reinstalling Flutter.
Search android studio in the Start window and delete all files.
On the user directory C:\Users\USERNAME, you also need to delete all directories starting by '.AndroidStudio'.
Android Studio create those directories after each update, as backup. And will restore the backup after reinstall if present.

Is it safe to delete .android folder in my home folder?

I am trying to free up some space on my hard drive. I've noticed that i have .android folder in my home folder on my mac. Does anyone know is it safe to delete this folder? And what exactly is it? It's 10Gb in size. I did use Android Studio on a school project but I don't use it anymore and I've uninstalled Android Studio since then. I don't have any android devices eighter.
Please don`t delete .android because this folder contain some setting that enable app to be installed and run on android emulator or device.
If you delete this folder, apk installation will be rejected during installation in the android device or emulator.
That is what I experienced after delete this folder.
Normally, it is created when you plug an Android device to your computer, and also it is the default location for the AVD as pointed by Gabriele in the comments. Find some insights in the next links:
https://developer.android.com/studio/run/emulator-commandline#data-filedir
https://askubuntu.com/questions/617912/what-are-the-android-folders-and-adbkey-files-on-my-computer
Cheers!
You can safely delete this folder at any time (except maybe while Android Studio is still running!)
All that will happen is that next time you use Android Studio:
it will need to re-download some stuff.
you might have to uninstall dev builds of apps on your phone and reinstall them again due to a change in keys.
you will lose any data and save states of emulators you were using.

Android studio is adding cached version on Android device

I deleted the app that android studio adds on the Android device. Afterwards, I rerun from Android studio but Android studio is adding some kind of a cached version on my Android device. I do make use of ROOM and Recyclerview when I run it's prefilled with the same old data.
How can I Android Studio's run install clean APK on my Android device?
When I make a new emulator and press run the Recyclerview isn't prefilled with old data and it's fine.
If you have backup enabled on your device, each time you reinstall the app Android will restore the backed-up data.
More info about Auto Backup here.

Android studio - no launch to last version of app and no project structure

In android studio, I had a project that was working in first place but then I created multiple copy of it in other paths to add changes to these copies instead of the original.
Afterwards, I noticed that the emulator shows up but doesn't launch the app I am trying to run. I followed a tutorial on YouTube that opens the setting app on the emulator and clears launcher data. then nothing changed.. I noticed that no matter how many changes I am adding to the file, nothing changes in the old app icon existing on the emulator.
Things got much worse later when I noticed that there is no modules or any other folders in the project structure except the SDK and when the older project versions were found to have same problem suddenly.
Even when I create a new project that is empty, same thing happens and the app crashes once it's installed.
Android app icon button before run appears in the project with a red cross over it.
Both the emulator and the mobile device don't get the latest version of the app I am trying to install.
I tried to make project, build, run, clean project, sync with gradle file, invalidate cache & restart. However, none of these solutions seem to work.
No idea what is going on.. things seem to be messed up and all online sources seem to be less useless to me.
Note: I am using Android studio V 1.1.0
so, I found that the best solution to this problem is to uninstall the current version of Android studio and SDK folder and reinstall it from scratch.. hope that helps

Categories

Resources