仿真程序没有运行hello world
我按照教程设置了hello world项目......并且它在模拟器上显示(至少一次)(但不是第一次,我记得)。我不能复制这个。原木说:仿真程序没有运行hello world
[2011-10-04 17:11:38 - Hello World] ------------------------------
[2011-10-04 17:11:38 - Hello World] Android Launch!
[2011-10-04 17:11:38 - Hello World] adb is running normally.
[2011-10-04 17:11:38 - Hello World] Performing ca.daveg.helloworld.HelloWorld activity launch
[2011-10-04 17:11:38 - Hello World] Automatic Target Mode: Preferred AVD 'testA' is not available. Launching new emulator.
[2011-10-04 17:11:38 - Hello World] Launching a new emulator with Virtual Device 'testA'
[2011-10-04 17:11:42 - Emulator] emulator: warning: opening audio input failed
[2011-10-04 17:11:42 - Emulator]
......这是奇怪的。我不知道什么音频与任何东西有关......我的耳机连接到电脑(连接了麦克风和耳机)。
模拟器只是启动(并正常工作),而不显示我的应用程序。我已经尝试了2.2,2.3和3.1的东西。我已经尝试了不同的堆大小。我已经广泛搜索这个网站,但没有任何标准提示(运行app.exe各种方式等)都有帮助。
即使说模拟器速度很慢---我一直在等待它,但我的系统是一个4.2Ghz i7,具有6G内存和快速磁盘...所以没有什么可以非常缓慢的。
仅供参考,这里是因为我有它现在的代码...:
package ca.somedomain.helloworld;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloWorld 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 2");
setContentView(tv);
}
}
这个问题已经有许多决议,探索无数次..这不是你的代码。
尝试通过在命令提示符下发出命令adb kill-server然后adb start-server来查杀adb。
一些杀人杀死abd.exe进程..然后做一个卸载他们的应用程序,如果存在。如果你搜索这个错误..你会在这里找到很多关于stackoverflow的示例解决方案。
好吧......我在问题中说过我已经这么做了(虽然我有点含糊)。但是,我不但做到了这一点,而且还重新启动了工作站---而且这两个操作都不能解决问题。 – zbeeble
你可以发布你的AndroidManifest.xml吗? –
[code] –
zbeeble