Android项目运行后在虚拟器加载失败的问题

跟着《第一行代码》里的那个天气app敲的代码,敲了一部分,运行项目时在虚拟器中加载失败,代码应该没有什么问题,也没什么错误提示:
[2015-08-11 10:41:35 - CoolWeather] Android Launch!
[2015-08-11 10:41:35 - CoolWeather] adb is running normally.
[2015-08-11 10:41:35 - CoolWeather] Performing com.coolweather.app.activity.ChooseAreaActivity activity launch
[2015-08-11 10:41:38 - CoolWeather] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD '4.0.3'
[2015-08-11 10:41:38 - CoolWeather] Uploading CoolWeather.apk onto device 'emulator-5554'
[2015-08-11 10:41:38 - CoolWeather] Installing CoolWeather.apk...
[2015-08-11 10:41:52 - CoolWeather] Success!
[2015-08-11 10:41:52 - CoolWeather] Starting activity com.coolweather.app.activity.ChooseAreaActivity on device emulator-5554
[2015-08-11 10:41:53 - CoolWeather] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.coolweather.app/.activity.ChooseAreaActivity }

新手,各位前辈能帮我解答下吗,感激不尽。

补充,源码github地址:https://github.com/wang1076554677/QingFengWeather

试试在AndroidManifest里面把那个包的路径名用绝对路径,没遇到这个问题,看log第一感觉是找不到相应的activity

建议在ddms里面重启adb,有时候adb会莫名其妙的死掉。

看你的logcat表明已经添加成功。

1.可以看你的配置文件中是否有ActivityMain的配置启动项。
2.eclipse虚拟机开久了,自动就会掉线。我一般是重启eclipse。
3.安卓虚拟机版本问题

感觉一楼说的对,看是否找到对应的activity,模拟器已经起来了,是代码的问题。

如果你确定了不是模拟器的问题,你检查下清单文件Mainfest.xml,是否配置了这个Acitivty,有问题再来问。

看看是不是找不到启动activity、路径看看对不对、

adb服务死掉了解决方案:
1.在DDMS的Devices视图右上角菜单中单击“Reset adb”菜单项重启adb服务。
2.关闭模拟器,并重新启动。
3.在管理器的“进程”列表中结束adb.exe进程,然后关闭模拟器,并再次启动模拟器。
4.如果还是不行,就重启eclipse,甚至重启操作系统。

android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme" >

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
            在你的启动activity中加入<intent-filter>中的内容

android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme" >

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
            在你的启动activity中加入<intent-filter>中的内容

android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme" >