How to change the `temp` directory path of android `sdk`?

Viewed 4044

Since I reinstalled my OS, the path which android sdk points to became invalid. So, everytime I try to download or update something from sdk, it fails. I've searched many places for the solution but couldn't get a definite answer. for e.g.

    `C:\Users\GANESH~1\AppData\Local\Temp\PackageOperation40\android\repository\extras\intel\haxm-windows_r6_0_6.zip (The system cannot find the path specified)

the above path is invalid, as the username has changed since then. How to change it?

4 Answers

As I found out recently, previous temporary folder destination is located in the .installer/.installData file.
The file will be generated in each component. So to change the temporary folder I have had to find every folder .install in SDK location and remove them all.

I just realized that the question was still unanswered. I ended up copying my entire sdk to a different folder. & Every time I open my old projects, studio prompts me that path not found & asks me to direct it to new sdk. That eventually, also fixed the update issues I was facing

Faced the same problem today. I solved it by renaming the path inside the file .installData located at "C:\Users\UserName\AppData\Local\Android\Sdk"

Related