Problem with Android Emulator

this may be a problem with the android emulator, i am not sure.  i am very familliar with programing java but have no experience with programming android java applications.  so i started a new android project in intellij 10 ultimate and used the option to start with an already built out example program.  in the com.example package that was created there is a MyActivity class.

it is as follows

package com.example;

import android.os.Bundle;

public class MyActivity extends Activity
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState)

so i run this and once the emulator loads it pops up an error (inside the emulator) that says "Sorry! The application Search (process has stopped unexpectedly. Please try again."   there is a red force close box beneath it that does not respond to any interaction.   this is on mac osx with the android sdk 2.2.   the run terminal reveals this:

Waiting for device.
/Users/Tyler/Library/android-sdk-mac_x86/tools/emulator -avd Android_2.2 -netspeed full -netdelay none
Device connected: emulator-5554
Device is online: emulator-5554
Target device: emulator-5554 (Android_2.2)
Uploading file
 local path: /Users/Tyler/IdeaProjects/HelloDroid/out/production/HelloDroid/HelloDroid.apk
 remote path: /data/local/tmp/com.example
Installing com.example.
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example"
link_image[1995]: failed to link /system/bin/sh

Launching application: com.example/com.example.MyActivity.
DEVICE SHELL COMMAND: am start -n "com.example/com.example.MyActivity"
link_image[1995]: failed to link /system/bin/sh

i just want to start learning and cant even get the example program that intellij produces to run!   should i uninstall everything and try again?  i changed nothing from when i created the project.


Comment actions Permalink

Looks like your emulator image is corrupted, try to create the new emulator instance.

Comment actions Permalink

that sounds like a great idea. i am as i said new to android dev so how does one create a new emulator instance?

Comment actions Permalink

Via the SDK Manager, please refer to the SDK documentation.


Please sign in to leave a comment.