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.
Related
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.
I only have one machine (Mac OS 10.9.5). I currently have the canary version of Android Studio and I ran into some bug. So I want to install the stable version of Android Studio as well. Has anyone done that? Is there any issue with more than one version installed on the same machine?
Yes, but you have to alter the settings of one of the installations to point it to a different settings and cache folders.
After an install, but before the first run, change the location of those folders according to this document.
You may want to list this as an OSX question. Since I'm not currently on my Mac I can't confirm, but it wouldn't hurt to download it and see. You'd be ask to confirm any installation before it happens. A lot of Max .dmg files can run the application in a self contained container without ever installing it. If it launches a GUI that has you drag the Software over to the App folder you can sometimes just launch the app as is. If it has to install it you could always move the existing Android Studio to another location and name and then install the new one (This would require looking up on OSX how to do that)
In general, you can.
But beware that there are cache folders under ~/Library/ApplicationSupport/AndroidStudioBeta (or ~/Library/ApplicationSupport/AndroidStudioPreview for the real old versions) and ~/Library/Caches/AndroidStudioBeta that will be shared between all "installations". So if your bug is related to something inside that folder (e.g a plugin) then you'll have a problem ;-)
You shouldn't use both versions at the same time, though.
I'm new in android developing. I use Android Studio 1.2. It's making some large size folders in C:. C:\Users\User\AppData\Local\Temp\AndroidEmulator is about 5 GB. Can I delete or move the file. Or how can I change this path to another drive?
I am answering it based on Android Studio.(v1.5.1), Windows 10.
Most of those temporary files are copies of your app that is installed to your emulator. And some are because of the packages you add to your app using gradle.
Even when your emulator starts it creates a file of more than 1.3GB which disappear when you close the emulator.
About deleting the files. Yes you can delete those files and still able to do every thing you are doing, you can see all installed apps in your emulator and run them for test.
I suppose these are system image downloading.
If you do not need emulator, these files are useless to you. You can remove them through SDK Manager.
If these files remain in Temp, just delete them
By the way,to move your temp folder : http://www.wikihow.com/Change-Location-of-the-Temp-Folder-in-Windows-7
In Custom Installation option, you will have option to place Studio and AVD manger on other Locations whichever you prefer.
I only have one machine (Mac OS 10.9.5). I currently have the canary version of Android Studio and I ran into some bug. So I want to install the stable version of Android Studio as well. Has anyone done that? Is there any issue with more than one version installed on the same machine?
Yes, but you have to alter the settings of one of the installations to point it to a different settings and cache folders.
After an install, but before the first run, change the location of those folders according to this document.
You may want to list this as an OSX question. Since I'm not currently on my Mac I can't confirm, but it wouldn't hurt to download it and see. You'd be ask to confirm any installation before it happens. A lot of Max .dmg files can run the application in a self contained container without ever installing it. If it launches a GUI that has you drag the Software over to the App folder you can sometimes just launch the app as is. If it has to install it you could always move the existing Android Studio to another location and name and then install the new one (This would require looking up on OSX how to do that)
In general, you can.
But beware that there are cache folders under ~/Library/ApplicationSupport/AndroidStudioBeta (or ~/Library/ApplicationSupport/AndroidStudioPreview for the real old versions) and ~/Library/Caches/AndroidStudioBeta that will be shared between all "installations". So if your bug is related to something inside that folder (e.g a plugin) then you'll have a problem ;-)
You shouldn't use both versions at the same time, though.
Here is how my story goes. At first, I installed the Android SDK in the default directory it selected, which was Program File (x86) (which I thought the default was supposed to be app data?!) After SUCCESSFULLY pulling the APIs I quickly realized the mistake I had made, due to spaces being in the name, so I then uninstalled it and re-installed it in my D drive under a folder called development.
That all went fine, but when I tried to pull the SDK, I received the "A folder failed to be renamed or moved" message. I then tried disabling my anti-virus (more on that later), closing all other windows, and even ending windows explorer, but nothing changed.
To disable my antivirus, I used it's control panel (Avast BTW) to turn off the shields. What I really wanted to do was end the process, but, and here is the big but, Access Denied! I even ran taskmgr.exe as admin, but no success. Can anyone explain why that is? Anyways, after getting fed up with it all, I just booted into safemode with networking, and all is well for now, but I really would hate doing this every time I need to update the SDK, so any suggestions on how to fix this would be a great help, especially how to end my antivirus process so I can see if that's the problem.
EDIT: And I also did all that while running the Android SDK manager as administrator from the folder it is installed in.
I assume that the problem happens because the upgrade program wants to upgrade itself directly while it is running. My solution is that every time before you want to install something new, make a copy of \<sdk dir>\tools dir in the \<sdk dir>\ path, and then, upgrade or install something by excecuting android.bat in the copied tools folder. This works for me.
try rename "platform-tools" folder as "_platform-tools" and create a new folder as name "platform-tools".
that's work for me!
Having eclipse open sometimes causes this.
Open the Android SDK Manager then close eclipse before you press the "install packages" button and it should be fine.