Android的活动类不存在?不存在、Android

2023-09-12 23:46:02 作者:暮色年華

我一直在开发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. ?

Android Q露出庐山真面目

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

 
精彩推荐
图片推荐