Android的活动类不存在? [英] android activity class does not exists?

查看:185
本文介绍了Android的活动类不存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发Eclipse的一个项目,一个Android应用程序。我经常得到一个错误属─活动类不存在。但是,当我刚保存清单文件再次错误消失,程序正常运行。那么,为什么我一次又一次地得到同样的错误。 ?

控制台错误:

  [2011-11-18 15点〇八分38秒 - 链接]上的设备模拟器-5554开始活动acb.abc.LinkActivity
[2011-11-18 15点〇八分40秒 - 链接] ActivityManager:开始:意向{行为= android.intent.action.MAIN猫= [android.intent.category.LAUNCHER] CMP = acb.abc / .LinkActivity}
[2011-11-18 15点〇八分40秒 - 链接]新的包还没有注册到系统中。等待3秒下一次尝试之前。
[2011-11-18 15点〇八分40秒 - 链接] ActivityManager:错误:Activity类{acb.abc / acb.abc.LinkActivity}不存在。
 

解决方案

每一个新的活动是在应用程序中添加的时候,它需要在清单文件,以及一个新的标签以复加。 确保乌尔这样做,否则新的活动将不被考虑。 更多信息参见

I have been developing a project in eclipse for an android app. An error which i frequently get is that of- activity class does not exist. But when i just save the manifest file once again the error vanishes and the program runs correctly. Why then do i get the same error again and again. ?

Console error:

[2011-11-18 15:08:38 - link] Starting activity acb.abc.LinkActivity on device emulator-5554
[2011-11-18 15:08:40 - link] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=acb.abc/.LinkActivity }
[2011-11-18 15:08:40 - link] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2011-11-18 15:08:40 - link] ActivityManager: Error: Activity class {acb.abc/acb.abc.LinkActivity} does not exist.

解决方案

every time a new activity is added in the application, it needs to be added in the manifest file as well with a new tag. Make sure that u r doing this otherwise the new activity will not be considered. For reference see This

这篇关于Android的活动类不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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