无法找到明确的Activity ActivityNotFoundException: Unable to find explicit activity

Android 2.3.3
Eclipse Version: 3.7.0
LogCat

 

 LogCat 报错:

 

02-03 15:52:46.363: INFO/ActivityManager(61): Starting: Intent { flg=0x10000000 cmp=com.taobao.iphone4s/.Start } from pid 736
02-03 15:52:46.405: DEBUG/AndroidRuntime(736): Shutting down VM
02-03 15:52:46.405: WARN/dalvikvm(736): threadid=1: thread exiting with uncaught exception (group=0x40015560)
02-03 15:52:46.405: ERROR/CrashHandler(736): Unable to start receiver com.taobao.iphone4s.BootBroadcastReceiver: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.taobao.iphone4s/com.taobao.iphone4s.Start}; have you declared this activity in your AndroidManifest.xml?
02-03 15:52:46.672: DEBUG/CrashHandler(736): BOARD : unknown
02-03 15:52:46.672: DEBUG/CrashHandler(736): BOOTLOADER : unknown
02-03 15:52:46.672: DEBUG/CrashHandler(736): BRAND : generic
02-03 15:52:46.672: DEBUG/CrashHandler(736): CPU_ABI : armeabi
02-03 15:52:46.672: DEBUG/CrashHandler(736): CPU_ABI2 : unknown
02-03 15:52:46.672: DEBUG/CrashHandler(736): DEVICE : generic
02-03 15:52:46.683: DEBUG/CrashHandler(736): DISPLAY : sdk-eng 2.3.3 GRI34 101070 test-keys
02-03 15:52:46.683: DEBUG/CrashHandler(736): FINGERPRINT : generic/sdk/generic:2.3.3/GRI34/101070:eng/test-keys
02-03 15:52:46.683: DEBUG/CrashHandler(736): HARDWARE : goldfish
02-03 15:52:46.683: DEBUG/CrashHandler(736): HOST : android-test-26.mtv.corp.google.com
02-03 15:52:46.693: DEBUG/CrashHandler(736): ID : GRI34
02-03 15:52:46.693: DEBUG/CrashHandler(736): MANUFACTURER : unknown
02-03 15:52:46.703: DEBUG/CrashHandler(736): MODEL : sdk
02-03 15:52:46.703: DEBUG/CrashHandler(736): PRODUCT : sdk
02-03 15:52:46.712: DEBUG/CrashHandler(736): RADIO : unknown
02-03 15:52:46.712: DEBUG/CrashHandler(736): SERIAL : unknown
02-03 15:52:46.712: DEBUG/CrashHandler(736): TAGS : test-keys
02-03 15:52:46.712: DEBUG/CrashHandler(736): TIME : 1296773036000
02-03 15:52:46.712: DEBUG/CrashHandler(736): TYPE : eng
02-03 15:52:46.712: DEBUG/CrashHandler(736): UNKNOWN : unknown
02-03 15:52:46.724: DEBUG/CrashHandler(736): USER : android-build
02-03 15:52:49.905: INFO/Process(736): Sending signal. PID: 736 SIG: 9
02-03 15:52:49.924: INFO/ActivityManager(61): Process com.taobao.iphone4s (pid 736) has died.
02-03 15:52:49.924: INFO/WindowManager(61): WIN DEATH: Window{405917c8 Toast paused=false}
02-03 15:52:50.252: WARN/NotificationService(61): Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@406031c8 in package com.taobao.iphone4s
02-03 15:52:50.252: WARN/ActivityManager(61): setProcessForeground called on unknown pid: 736
02-03 15:52:51.622: DEBUG/dalvikvm(340): GC_EXPLICIT freed 7K, 55% free 2530K/5511K, external 1625K/2137K, paused 45ms
02-03 15:52:56.762: DEBUG/dalvikvm(252): GC_EXPLICIT freed 7K, 54% free 2536K/5511K, external 1625K/2137K, paused 55ms

 

主要错误:

02-03 15:52:46.405: ERROR/CrashHandler(736): Unable to start receiver com.taobao.iphone4s.BootBroadcastReceiver: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.taobao.iphone4s/com.taobao.iphone4s.Start}; have you declared this activity in your AndroidManifest.xml?   

 

原因:AndroidManifest.xml未添加对应Activity配置,无法找到明确的Activity

 

解决办法:在AndroidManifest.xml添加对应Activity配置内容。

 

		<activity android:name=".Start" android:label="@string/app_name"
			android:theme="@android:style/Theme.Dialog"
			android:screenOrientation="user" android:configChanges="orientation|keyboardHidden">
			<intent-filter>
				<category android:name="android.intent.category.LAUNCHER" />
			</intent-filter>
		</activity>

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值