Tuesday, July 10, 2012

AVD path problem


We can test our Android program on the Android Virtual Device (AVD).  An AVD is a device configuration for the Android emulator that allows you to model different device configurations.

By default, the AVD is saved in \\data\<<username>>\.android\avd. For some reasons, Eclispe doesn't go to the correct path to look up the configuration. User will receive error like "Failed to parse properties from config.ini".

One solution is to define the path by setting up a system variable. See the following instruction:

  1. Start Menu > Control Panel > System > Advanced System Settings (on the left) > Environment Variables

  2. Add a new user variable (at the top) that points your home user directory:
    Variable name: ANDROID_SDK_HOME
    Variable value: C:\Users\>User Name<

No comments:

Post a Comment