everyone. I used to develop android application on Mac. Recently I installed android development environment on my Thinkpad which running Xubuntu.
I imported the Android studio settings on Mac to the Android studio on Xubuntu via File-> import settings.
But after I have done this, everything goes wrong. The hotkey, the java path ecc.
I tried to delete android studio, and download it again, but the settings are still there.
On the internet I can find almost nothing about this, does anyone know how to reset Android Studio settings to default setting? Thanks!
It's very simple. Depending on your AndroidStudio version, the settings are stored in ~/.AndroidStudio
, ~/.AndroidStudio1.1
or ~/.AndroidStudio1.2
.
Open a terminal and run the following code:
ls -a | grep Android
# See which of those three folders above you have. Then rename each of the settings folders you have with the appropriate mv
command:
mv .AndroidStudio .AndroidStudio.bak
mv .AndroidStudio1.1 .AndroidStudio1.1.bak
mv .AndroidStudio1.2 .AndroidStudio1.2.bak
The file location on Linux has changed since this question was first asked. As of Android Studio 4.2, you may remove all the settings and cache using:
rm -rf ~/.config/Google/AndroidStudio*
rm -rf ~/.local/share/Google/AndroidStudio*
rm -rf ~/.cache/Google/AndroidStudio*
To restore with same method of the colleague with windows, but now with ubuntu, by the terminal.
For example, in my case, these: - Android - .AndroidStudio3.0 - AndroidStudioProjects - AndroidV
In my case I got the folder .Android studio, I proceed to delete with the command (rm -rf ~/.AndroidStudio3.0) without parentisis.
I return to check with the command (ls -a | grep Android), without parentisis. if the folder .Androidstudio3.0 was deleted, in my case.
then run Android Studio launcher, Vooalaaa !! Configure as the first time and Resetting.
Apologize for my bad orthographies and other details, but with that method I solved my Android Studio in ubuntu 16.04 LTS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With