Start the android simulator to report the panic: cocould not open/. Android/AVD/test. ini problem.

Source: Internet
Author: User

You can use either the eclipse menu or the shell console to start the android simulator.

Method 1: Eclipse menu

Click "window" menu ---> select "AVD manager" ---> open the "android Virtual Device Manager" window.

Click "new..." to create a new AVD. After creation, click "start..." to start the simulator.


Method 2: Shell Console

The installation directory of my android SDK is c: \ Program Files \ Android-SDK \ tools. Therefore, use the CMD shell to enter the installation directory of the SDK,

Run c: \ Program Files \ Android-SDK \ tools> emulator.exe-AVD upnptest to start the simulator.



However, if the android configuration is incorrect, the following error will be reported regardless of the method used to start the simulator:

C: \ Program Files \ Android-SDK \ tools> emulator.exe-AVD upnptest

Panic: cocould not open: C: \ Documents ents and Settings \ Administrator \. Android/AVD/upnptest. ini

This problem occurs because android_sdk_home is not configured. The simulator uses the current user's environment directory as the directory of android_sdk_home, causing an error.

We only need to set the android_sdk_home of the system environment variable to your own directory. The directory I set is E: \ androidinstallpath, disable eclipse, restart eclipse, and delete the previously created AVD, then create a new instance to start the instance properly.


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.