Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK and AVD Manager -Cant create AVD in correct file location

Tags:

android

When trying to create an AVD with the android SDK AVD manager I get 'Error: null'. This keeps happening because the SDK manager is looking for 'List of existing Android Virtual Devices located at \...(wrong location). How can I change the file location?

like image 618
Sean Avatar asked Jan 26 '11 21:01

Sean


People also ask

What is AVD Manager in Android Studio?

The AVD Manager is an interface you can launch from Android Studio that helps you create and manage AVDs. To open the AVD Manager, do one of the following: Select Tools > AVD Manager. Click AVD Manager in the toolbar.

What is AVD (Android virtual device) SDK?

(AVD stands for Android Virtual Device). Virtual devices allow you to test your application without having to own any physical devices. Android Studio should be installed on your machine. Launch Android studio. Configure >> Appearance & Behavior >> System Settings >> Android SDK.

How do I create an AVD device using sdkmanager?

Use the “ sdkmanager — list” command to find these packages and download them using the command “ sdkmanager <package name> ”. Creating a AVD device is a simple task: run the AVDManager command (this is a binary file located in the tools/bin folder of your sdk) with the create avd option, a name for the new AVD and the image you want to use.

How do I create a virtual device in AVD Manager?

To create a new AVD: Open the AVD Manager by clicking Tools > AVD Manager. Click Create Virtual Device, at the bottom of the AVD Manager dialog. Select a hardware profile, and then click Next.


1 Answers

I had similar issue. I have solved this by setting up the environment variable ANDROID_SDK_HOME in my startup script. The path shall be your desired location of .android folder, excluding the last slash. Example:

SET ANDROID_SDK_HOME=C:\Users\toybuilder\Downloads
like image 70
Tomas Avatar answered Oct 14 '22 05:10

Tomas