当前位置:   article > 正文

Android调试笔记——FATAL EXCEPTION: main...have you declared this activity in your AndroidManifest.xml?_android studio中 fatal exception: main pid:5907

android studio中 fatal exception: main pid:5907

最近在写Android的时候遇到个问题,某一Activity明明在AndroidManifest里注册过,运行时却仍无法进入该活动。

报错如下:

09-04 00:00:18.472: E/AndroidRuntime(1052): FATAL EXCEPTION: main
09-04 00:00:18.472: E/AndroidRuntime(1052): Process: com.example.compusforest, PID: 1052
09-04 00:00:18.472: E/AndroidRuntime(1052): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.compusforest/com.example.guide.GuideActivity}; have you declared this activity in your AndroidManifest.xml?
09-04 00:00:18.472: E/AndroidRuntime(1052): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1777)
09-04 00:00:18.472: E/AndroidRuntime(1052): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
09-04 00:00:18.472: E/AndroidRuntime(1052): at android.app.Activity.s

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/430129
推荐阅读
相关标签
  

闽ICP备14008679号