Android emulator not starting in eclipse

I just installed the whole shebang to develop Android applications in Eclipse (I am running 64 bit gentoo). Everything seems to be going well, and I created an example of the dev hi-world group:

package com.nfshost.flyingmonkey.android; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); } } 

I try to run it in eclipse, and according to the console, it works:

 [2010-08-26 14:03:18 - HelloAndroid] ------------------------------ [2010-08-26 14:03:18 - HelloAndroid] Android Launch! [2010-08-26 14:03:18 - HelloAndroid] adb is running normally. [2010-08-26 14:03:18 - HelloAndroid] Performing com.nfshost.flyingmonkey.android.HelloAndroid activity launch [2010-08-26 14:03:18 - HelloAndroid] Automatic Target Mode: using device '015D7D330A028012' [2010-08-26 14:03:18 - HelloAndroid] Uploading HelloAndroid.apk onto device '015D7D330A028012' [2010-08-26 14:03:18 - HelloAndroid] Installing HelloAndroid.apk... [2010-08-26 14:03:20 - HelloAndroid] Success! [2010-08-26 14:03:20 - HelloAndroid] Starting activity com.nfshost.flyingmonkey.android.HelloAndroid on device [2010-08-26 14:03:21 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.nfshost.flyingmonkey.android/.HelloAndroid } 

Only, the emulator never appears on my screen, as the manual says: http://developer.android.com/guide/tutorials/hello-world.html#run )

+2
android eclipse android-emulator
source share
4 answers

See the first comment on my question:

Automatic Target Mode: using device '015D7D330A028012' seems to suggest it installing onto a USB-attached device, rather than firing up an emulator. - Christopher August 26 at 19:17

+3
source share

Go to Window → Android SDK and AVD Manager → Virtual device and create a new virtual device there (do not forget to specify the correct API target level for this device). If this virtual device is a hosted virtual device, the application will launch this device when the application starts.

0
source share

i ran into a problem sAMe go ro run run selection setup view your project select android open a new configuration, then select run ..

he worked for me ..

0
source share

Sorry for the answer above, I'm just doing it like this. open cmd promt .. go to the directory where my sdk was added, I go to the subdriectory tool, and then run the android.bat file, just by simply entering the name android.bat in this file.

0
source share

All Articles