Android App Development--Create an Android virtual machine

Source: Internet
Author: User

Create a virtual machine

After installing Eclipse+adt and setting up the Android SDK path, click the button in the diagram or select the appropriate option in the menu to open the AVD Manager (Android virtual Device Manager).

Click the New button

Fill in the name, memory card size, select the screen size, click Create AVD.

Startup of virtual machines

The virtual machine is created, as shown below. Using Eclipse to run the developed Android program, if the system version matches, it will automatically start the virtual machine (virtual machine boot is slow, the use of the time to keep the boot, do not shut down).

You can also select the newly created virtual machine, click Start, and the pop-up window launch to start the virtual machine.

Problem solving

A similar error may occur when you start the virtual machine:

Workaround 1:

If you can find an. android folder in the root directory of the Android SDK, there is an error message that says the/avd/android-4.0.ini file. Copy this folder directly to the C:\Users\jzj\ directory described in the error message.

Workaround 2:

1. Set environment variable: Android_sdk_home value is your SDK directory. As I do: the variable name android_sdk_home value is E:\JAVA\ANDROIDSDK

2. Modify the configuration file in the Eclipse installation directory: Locate the following file: Eclipse\configuration.settings\org.eclipse.ui.ide.prefs after opening, add the environment variable that you just configured later.

As I added: android_sdk_home=e\:\\java\\androidsdk (note slash format)

3. Restart Eclipse and rebuild the AVD to run successfully.

Virtual Machine interface

Virtual machine boot interface such as:

Virtual Machine Runtime interface

The virtual machine is running its own Hello World application:

This article first Self's personal homepage, reprint please indicate source: Http://www.hainter.com/android-virtual-device

Android App Development--Create an Android virtual machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.