how to change the sdk and emulator path?

mc 3,701 Reputation points
2024-04-19T13:11:37.76+00:00

the android sdk and emulator is all in C:\\ how to change the path?

one of the emulator path is C:\Users\ljzj\.android\avd\pixel_5_-_api_30.avd

how to change it to other path

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
    2024-04-22T07:08:33.9466667+00:00

    Hello,

    You can do this by adding a new environment variables called ANDROID_AVD_HOME and set the path of installed emulator.

    You can refer to the following steps to add the environment variable.

    Please Note: If you have previous installed emulator. After adding this environment variable, previous installed emulator will be missing.

    1. Open Control Panel
    2. Then go to System and Security
    3. Then go to System
    4. Then go to Advanced system settings
    5. Then go to Change Environment Variables of the User
    6. Then click create a new environment variables
    7. Create a new variable named ANDROID_AVD_HOME
    8. Set its value to your Android directory, like C:\

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful