In Windows 7, an error occurs in the android simulator. emulator: Error: Unknown Virtual Device name is the correct solution.

Source: Internet
Author: User

After the system is reinstalled for a long time, the android SDK that was previously installed cannot start the simulator. The following solutions are available for searching on the network:

Http://www.cnblogs.com/hlt1988321/archive/2010/10/17/1853736.html

Android simulator error, emulator: Error: Unknown Virtual Device name
cause: the default position of my document changes

An error such as error: Unknown Virtual Device name is generally caused by a file path reference error. For example, you can set a user file to drive F in Vista. In this way, when you use eclipse or create an android emulator from the command line, the corresponding file is placed to "F: \ Users \ \. android "below, and the Program is still running from" C: \ Users \ \. android "to find the corresponding configuration file, resulting in the above error.

solution 1:
set "F: \ Users \ \. copy the file under android to c: \ Users \ \. android "below can solve this problem, but such a solution has an obvious drawback, that is, if another
AVD is created, it must be re-copied.

solution 2:
Open System Properties-> environment variable-> under the groupbox of "system variables", select "new"-> the variable name is "android_sdk_home" (note, this variable name cannot be changed. It can only be this name !), Then change the variable value to the value of AVD ". android "folder location, for example:" F: \ androidemulator ", here I put it in the android SDK package with the value:" D: \ SDK \ Android \ android-sdk-windows1.5_r3 "

Note: You can set the android_sdk_home value to the path of "My Documents". For example, "d: \ My Documents"

However, in fact, this does not solve the problem on Windows 7, because my ". Android" folder is put on the E drive, that is, "E: \. Android ".

Later I found a BSS discussion: http://forum.xda-developers.com/showthread.php? T = 520915

It is feasible to use NTFS junction. The procedure is as follows:

    1. Use AVD manager to delete all simulator configurations
    2. Download and install sysinternalssuite
    3. Create a new folder under "C: \ Users \ <your name>"
    4. Change the new folder to ". Android" in the command line"
    5. Run the following command in the command line: junction C: \ Users \ <your name> \. Android E: \. Android
    6. Create simulator configuration again

In addition, the specific usage of junction can refer to: http://hi.baidu.com/monkey_op/blog/item/4b298164dd780336aa184c33.html

Related Article

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.