You shouldn't move the AVD files around.

What's the SDK Target setting for your project? You can find out by
bringing up the Properties dialog box and select Android.

Since you created a target 2 AVD, you should set the SDK Target for
your project to "Android 1.5".

Also double check the Target setting in the Run Configurations dialog
box.


--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Apr 24, 10:13 pm, Andrex <[email protected]> wrote:
> I've been developing for android since the first SDK came out, and
> have downloaded every early preview one after that- m3, m5, 0.9, 1.0,
> 1.1, and now the 1.5pre. This latest one is the only one to give me
> trouble.
>
> When I first tried to launch a simple program, the error "Failed to
> find an AVD compatible with target 'Android 1.5'. Launch aborted."
> popped up. So, I used <code>android create avd -n my_avd -t 2</code>.
> When the prompt "Do you wish to create a custom hardware profile [no]"
> came up, I just hit enter (and once I typed "no" and hit enter).
>
> Great. But then when I reran the program, it gave me the exceptions
> (as it wasn't in red):
>
> <code>[2009-04-25 01:00:24 - Emulator] emulator: ERROR: unknown
> virtual device name: 'my_avd'
> [2009-04-25 01:00:24 - Emulator] emulator: could not find virtual
> device named 'my_avd'</code>
>
> I moved the avd files around to various places- the tools folder, the
> project folder in the Eclipse workplace folder, the SDK director
> itself... no dice. When I delete the AVD, it gives me the first error
> again.
>
> Thus, I completely wiped Android and Eclipse from my system, and re-
> installed fresh (this means the Eclipse install, the Eclipse and
> Android workspaces, the SDK, etc.) Only thing I didn't delete was the
> shortcuts. But I was back at square one again.
>
> So, I turn to you, ever eager-to-help Google Groups. Some technical
> info that might be of help:
>
> Windows Vista 32-bit
> Eclipse 3.4 Ganymede
> Android SDK 1.5pre
>
> Android Workspace: C:\Users\Public\.android
> AVDs Created At: C:\Users\Public\.android\avd
> Eclipse Workspace: C:\Users\Public\Eclipse Workspace
>
> Eclipse Directory: C:\Program Files\Eclipse
> SDK Directory: C:\Program Files\Eclipse\android-sdk-windows-1.5_pre
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to