1

When I try to run the Hello, Android Activity, it says: emulator: ERROR: no search paths found in this AVD's configuration. And underneath that it says: Weird, the AVD's config.ini file is malformed. Try re-creating it.

I'm stumped and would really appreciate if someone could help me out.

This is what I have for the code:

package my.helloandroid.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroidActivity extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            TextView tv = new TextView(this);
            tv.setText("Hello, Android");
            setContentView(tv);
       }
}
Samet ÖZTOPRAK
  • 2,734
  • 3
  • 27
  • 31

2 Answers2

0

Three things which came to my mind.

  1. Be sure to check if you have correct path to avd, Window->preferences.
  2. Press right mouse button on your project folder and use android tools -> fix project.
  3. simply restart eclipse.
Orkun Ozen
  • 6,665
  • 7
  • 53
  • 86
sebap123
  • 2,371
  • 6
  • 40
  • 76
0

Check the manifest file or look here:

Trouble getting Android emulator to run in eclipse

Community
  • 1
  • 1
Gangnus
  • 23,160
  • 15
  • 83
  • 139