本人新手一枚,刚上手android的开发。遇到的问题是:开发环境已经配置好,运行最简单的hello world程序,没有报错,会出现模拟器界面,但是里面没有安装我写的程序,logcat里没有一条记录,如下是控制台[2012-06-12 22:24:35 - HelloPig] ------------------------------
[2012-06-12 22:24:35 - HelloPig] Android Launch!
[2012-06-12 22:24:35 - HelloPig] adb is running normally.
[2012-06-12 22:24:36 - HelloPig] Performing com.example.hellopig.HelloPigActivity activity launch
[2012-06-12 22:24:36 - HelloPig] Automatic Target Mode: launching new emulator with compatible AVD 'bbb'
[2012-06-12 22:24:36 - HelloPig] Launching a new emulator with Virtual Device 'bbb'
[2012-06-12 22:24:41 - Emulator] emulator: emulator window was out of view and was recentered
[2012-06-12 22:24:41 - Emulator] 就停在这里就不动了。
初步怀疑是eclipse没找到我建的模拟器,但是我看了windows->performance->android->build,发现debug路径是我所在的模拟器的位置没错,而且就是系统的默认位置,C:\user\XXX\.android然后又怀疑其他的环境变量设置的是否有问题,但是检查过,发现没有问题(jdk和adb都可以在命令行里运行)实在想不出有什么问题了,于是来这里请各位大大帮忙,十万火急!!!下面说下具体各个部分的版本
ADT 18.0 (官网能下到的最新版本)
SDK platform用的是1.5
eclipse 是 java EE IDE for developers
因为看官网上的介绍,ADT 18是为了SDK tools rel.18设计的,所以就没有升级成19.
其他的都是常规安装,包括1.5和extra的全部package再次强调,没有报错,用eclipse打开模拟器是可以的,模拟器自带的demo都运行的不错,就是里面没有我写的程序,控制台只停在emulator found之前,logcat里没有一条记录。我的代码保证每问题(从官网复制的......)
所以各位巨巨,摆脱帮帮忙啊!!!!

解决方案 »

  1.   

    可以看看:http://stackoverflow.com/questions/4967884/emulator-exe-has-stop-working
    不知道对你有没有帮助
    引用:
    I too had the Same Problem,Now i got the solution while searching the internet.Solution: Edit the Device settings and change the RAM allocation to a lower number. If it was 1024 or More, reduce it to 512Mb or 256MbYou can Change it in "Edit Android Virtual Device (AVD)" dialog's Hardware Section --> Device ram size
      

  2.   

    貌似不是这回事儿啊,我的情况是可以打开模拟器,而且可以正常操作,就是找不到我写的程序,控制台停在New emulator found前一句不动了,logcat里连一行字都没有......
    好费解啊......各位大神你们在配置开发环境的时候有木有设置什么特殊的环境变量啥的?
    我是64位win7旗舰,不知道是不是有什么说法?