Android模拟器无法在Eclipse中启动 [英] Android emulator does not start in eclipse

查看:104
本文介绍了Android模拟器无法在Eclipse中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装的整个家当,为了在Eclipse中开发Android应用程序(我运行64位的Gentoo)。一切似乎去罚款,我创建了开发组的Hello世界的例子:

I just installed the whole shebang in order to develop android apps in Eclipse (I'm running 64-bit gentoo). Everything seems to go fine, and I created the dev group's hello-world example:

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);
    }
}

我去试试,并在Eclipse中运行它,并按照控制台似乎工作:

I go to try and run it in eclipse, and according to the console it seems to work:

[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 }

只是,模拟器一直没有出现在我的屏幕就像指南上说,这将(http://developer.android.com/guide/tutorials/hello-world.html#run)

Only, the emulator never shows up on my screen like the guide says it will (http://developer.android.com/guide/tutorials/hello-world.html#run)

推荐答案

请参阅我的问题的第一个评论:

See first comment to my question:

目标自动模式:使用设备015D7D330A028012似乎暗示它安装到USB连接的设备,而不是发射了一个模拟器 - 克里斯托弗08月26日的19。 :17

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

这篇关于Android模拟器无法在Eclipse中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆