From c0a1ac06b6cd18da46ed43790ace10fb3c967d0f Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 14 Jul 2023 19:49:59 +0200 Subject: Change Android Studio from using /home/srdusr/Android to /opt/android-sdk --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 662a42a..0820dd0 100644 --- a/README.md +++ b/README.md @@ -190,9 +190,15 @@ $ sudo mysql ```bash $ sudo mkdir /opt/android-sdk ``` - - Click on the folder icon next to the SDK path field. - - In the file picker dialog, navigate to the /opt directory and select the android-sdk directory. - - Proceed with the setup wizard, following the remaining instructions to complete the installation. + - Click on the folder icon next to the SDK path field. + - In the file picker dialog, navigate to the /opt directory and select the android-sdk directory. + - Proceed with the setup wizard, following the remaining instructions to complete the installation. +- If already installed and prefer not to have a `$HOME/Android` directory but rather use `/opt/android-sdk` + - Launch Android Studio. + - Go to "File" > "Settings" (on Windows/Linux) or "Android Studio" > "Preferences" (on macOS) to open the settings. + - In the settings, navigate to "Appearance & Behavior" > "System Settings" > "Android SDK". + - In the "Android SDK Location" field, update the path to `/opt/android-sdk`. + - Click "Apply" or "OK" to save the settings. - Put these lines into `.bashrc`/`.zshrc` or any similar shell configuration file to make it persistent across sessions ``` -- cgit v1.2.3