Android Studio cannot update with warning

When the download is completed, a warning appears: โ€œThe Android SDK folder can no longer be inside the application folder. Move it to another location, for example, to your home folder. When the IDE restarts, it asks you to enter a new location ...โ€ And I restart it and I choose another agreement, but it did not work.

+6
source share
4 answers

"The Android SDK folder can no longer be located inside the application folder. Move it to another location, for example, in your home folder. When the IDE restarts, it will prompt you to enter a new location."

Open the folder where you put your Android studio, on the Mac is ( Applications/Android\ Studio.app/ ), and on Windows - %LOCALAPPDATA%\Android\android-studio\sdk and move the sdk folder that you find inside, in the other place. After you moved it to another place, press the repeat button.

+9
source

Disable sdk folder (this is the default location, maybe you installed it somewhere else)

C: \ Users \ [Username] \ AppData \ Local \ Android \ Android Studio

and paste it in another place, then try updating.

Once it is updated, set the path to your sdk in the studio.

+1
source

From Android Tools Project Site

To continue, you must open the file explorer or search box, go to the installation of Android Studio (for example, / Applications / Android Studio.app) and move the sdk / folder to another location, for example, in your home directory. After that, click Retry to finish installing the patch. The reason why this is necessary is twofold: firstly, we have made many improvements to improve the patch update for sure, and in order for the installation signatures to match, you cannot have application folders that are not in the application directory. Secondly, placing the SDK folder inside the application directory is probably not recommended to start with: this folder should usually be writable in a directory with a lot of additional disk space, for example, that users can easily download and install additional libraries, system images, etc. .d. We do some work from the installer to simplify the setup.

0
source

Copy the sdk folder from

C: \ Users [Username] \ AppData \ Local \ Android \ android studio \ SDK

and paste it in another place, for example C: \ Users [Username] \ AppData \ Local \ Android \ android-studio and run the update. Then he will ask you to set the path. and its done

0
source

Source: https://habr.com/ru/post/977699/


All Articles