ActivityNotFoundException: Unable to find explicit activity class

简介: 08-26 10:28:32.383: E/AndroidRuntime(11988): FATAL EXCEPTION: main 08-26 10:28:32.383: E/AndroidRuntime(11988): Process: cn.
08-26 10:28:32.383: E/AndroidRuntime(11988): FATAL EXCEPTION: main
08-26 10:28:32.383: E/AndroidRuntime(11988): Process: cn.com.vargo.ivargosetupwizard, PID: 11988
08-26 10:28:32.383: E/AndroidRuntime(11988): android.content.ActivityNotFoundException: Unable to find explicit activity class {cn.com.vargo.ivargosetupwizard/cn.com.vargo.ivargosetupwizard.SetupWizardActivity}; have you declared this activity in your AndroidManifest.xml?
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.Activity.startActivityForResult(Activity.java:3424)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.Activity.startActivityForResult(Activity.java:3385)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.Activity.startActivity(Activity.java:3627)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.Activity.startActivity(Activity.java:3595)
08-26 10:28:32.383: E/AndroidRuntime(11988): at cn.com.vargo.ivargosetupwizard.WelcomActivity.finishSetup(WelcomActivity.java:105)
08-26 10:28:32.383: E/AndroidRuntime(11988): at cn.com.vargo.ivargosetupwizard.WelcomActivity$1.onClick(WelcomActivity.java:126)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.view.View.performClick(View.java:4438)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.view.View$PerformClick.run(View.java:18422)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.os.Handler.handleCallback(Handler.java:733)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.os.Handler.dispatchMessage(Handler.java:95)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.os.Looper.loop(Looper.java:136)
08-26 10:28:32.383: E/AndroidRuntime(11988): at android.app.ActivityThread.main(ActivityThread.java:5017)
08-26 10:28:32.383: E/AndroidRuntime(11988): at java.lang.reflect.Method.invokeNative(Native Method)
08-26 10:28:32.383: E/AndroidRuntime(11988): at java.lang.reflect.Method.invoke(Method.java:515)
08-26 10:28:32.383: E/AndroidRuntime(11988): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-26 10:28:32.383: E/AndroidRuntime(11988): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)

08-26 10:28:32.383: E/AndroidRuntime(11988): at dalvik.system.NativeStart.main(Native Method)



问题不是再配置清单 中没有添加这个活动,而是这个活动把自己给禁止调用了:


// Intent intentintent
private void disableSetupWizards(Intent intent) {
final PackageManager pm = getPackageManager();


pm.setComponentEnabledSetting(getComponentName(),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);
}




相关文章
|
Java Maven Spring
|
4月前
|
Java Android开发
Invoke-customs are only supported starting with Android,Static interface methods are only supported
Invoke-customs are only supported starting with Android,Static interface methods are only supported
45 2
|
7月前
|
XML 数据格式
android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual
android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual
33 0
Unknown custom element: <add-employee> - did you register the component correctly? For red cursive c
原因: 1.组件名没写对(导入和注册不对应) 2.components少写了个s 3.组件命名最好是驼峰命名 4.导入时语法错误 5.代码中有两个components,后一个的值把前一个覆盖了 6.组件直接循环套用了
101 0
|
Java
Preference跳转activity出错Unable to find explicit activity class
使用Preference可以非常方便的实现类似设置页面这样的菜单布局,甚至可以不需写java代码。那么可以在Preference中直接添加页面跳转么?其实非常简单,在Preference添加intent标签即可
527 0
|
Java
Could not find class 'android.support.v4.view.ViewPager', referenced from method***
Could not find class 'android.support.v4.view.ViewPager', referenced from method***
159 0
Could not find class 'android.support.v4.view.ViewPager', referenced from method***
|
分布式计算 资源调度 Java
[ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface
1:出现此种错误应该是jar版本包冲突了,启动hive的时候,由于hive依赖hadoop,启动hive,会将hadoop的配置以及jar包等等导入到hive中,导致jar包版本冲突,下面贴一下错误,然后贴一下解决方法: 1 [root@master bin]# .
1604 0