1. 程式人生 > >Android開發問題:ActivityNotFoundException: Unable to find explicit activity class

Android開發問題:ActivityNotFoundException: Unable to find explicit activity class

 
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 
[email protected]
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配置。

解決辦法:在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>

相關推薦

Android開發問題ActivityNotFoundException: Unable to find explicit activity class

 Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 報錯: 02-03 15:52:46.363: INFO/ActivityManager(61): Starting: Intent { flg=0x10

解決Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List

解決新增Butterknife8.8.1依賴後出錯的問題 1.在根目錄下的build.gradle中的dependencies新增如下: 這裡注意是8.4.0的版本!! classpath 'com.jakewharton:butterknife-gradle-pl

Android stuido 錯誤Error:Unable to find optional library: org.apache.http.legacy

今天在匯入新專案的時候出現了一個從來都沒有見過的錯誤,讓我鬱悶了很久,在網上也找了很多一樣錯誤解決方法,但是最終也是沒有解決,不能說網上的解決方法是錯誤,只能說網上的解決辦法是最基礎的,有時候不能夠解決問題,錯誤的截圖如下: 網上的解決辦法是: 1.   API23

Spark 引用ProtoBuffer報錯Unable to find proto buffer class

使用 yarn 的spark-submit提交時,加入超序列化引數: --conf spark.serializer=org.apache.spark.serializer.KryoSerializer \ 另,附:Spark-submit提交作業的shell版本模板。

Python3 pip 解決問題 error: Unable to find vcvarsall.bat

當我給 python3.5 安裝 第三方庫 charset 時:pip install charset,出現了錯誤: D:\WorkSpace\python_ws\python-large-web-crawler\firstdemo>pip

Android 6.0中"Unable to find optional library: org.apache.http.legacy"錯誤解決

Android 6.0版本已經已經基本將Apahce Http Client 移除出SDK,會報出以下錯誤: " Unable to find optional library: org.apache.http.legacy"  那麼問題來了,如果我在以前的專案中使用

Android Studio 解決 Error:Unable to find method 'org.gradle.api.tasks.TaskInputs.file(Ljava/lang/Object;)Lorg/gradle/api/tasks

Gradle編譯異常資訊 Error:Unable to find method 'org.gradle.api.tasks.TaskInputs.file(Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskInputFilePropertyB

【Python】selenium調用IE11瀏覽器,報錯“找不到元素”NoSuchWindowException: MessageUnable to find element on closed window

conn ont csdn creates logs 註冊 target get 意思 當編寫自動化腳本,定位瀏覽器元素時,報如下錯誤: 代碼: >>> # coding=utf-8 >>> from selenium import w

windows下安裝python的C擴展編譯環境(解決“Unable to find vcvarsall.bat”

鏈接 ros link mman ipy nload whl 包名 好的 個人文章除註明轉載外,均為個人原創或者翻譯。 個人文章歡迎各種形式的轉載,但請18歲以上的轉載者註明文章出處,尊重我的勞動,也尊重你的智商; 本文鏈接:http://www.cnblogs.com/

windows下,安裝python擴充套件時報錯unable to find vcvarsall.bat

我在win10環境下安裝一個python擴充套件時,報錯如下:   錯誤原因: %PythonInstallPath%\Lib\distutils\msvc9compiler.py 這個檔案是Python用來處理與VC編譯器有關的操作的。 其中該檔案裡的219行fin

cordova build android - unable to find attribute android:fontVariationSettings and android

當執行cordova run android 的時候出現如下錯誤 ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings ER

Cordova 打包錯誤 ERROR: In declare-styleable FontFamilyFont, unable to find attribute android

問題描述 今天在使用 “cordova build android” 的時候,發現報下面的錯誤 ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVaria

python 安裝模組時提示報錯Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)

有時候,在Windows7x64下使用pip安裝包的時候提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat) 環境:windows8 x64 ,python2.7 ,VS2012 解決方案:Microsoft Vi

python 安裝模塊時提示報錯Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)

親測 解決 com pip安裝 crf 管理員 網上 pretty mic 有時候,在Windows7x64下使用pip安裝包的時候提示報錯:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat

unable to find attribute android:fontVariationSettings and android:ttcIndex

升級依賴包及cordova之後,執行cordova platform add android, 部分外掛衝突,cordova 升級最新版,cordova-android降到6.3.0版本, 再次cordova platform add android,成功 執行 cordova build a

最簡單解決Python安裝拓展包問題unable to find vcvarsall.bat

一、問題描述  (1)、 電腦配置資訊:  win7系統 TMD GCC Python3.5.x  (2)使用pip命令安裝mysqlclient時報錯    error:unable to find vcvarsall.bat 我的電腦上安裝了TMD GCC但

執行ionic cordova build命令報- unable to find attribute android:fontVariationSettings and android:ttcInde

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In <declare-styleable

Python Windows下pip安裝庫出錯Microsoft Visual C++ 9.0 is required < Unable to find vcvarsall.bat

一直在用Linux, 最近想在windows下使用python。  當我想安裝Matplotlib module的時候, 出現以下錯誤。Microsoft Visual C++ 9.0 is required < Unable to find vcvarsall.ba

Android開發android studio報錯 Failed to resolve: com.android.support.constraint:constraint-layout:1.0.

情景:在build.gradle檔案新增下面程式碼 compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4' 點選“Sync now”後報錯: Failed to resolve:co

Android開發建立專案後報錯,com.android.ide.common.process.ProcessException: Failed to execute aapt

情景:建立專案後報錯 com.android.ide.common.process.ProcessException:Failed to execute aapt 原因:在build.gradle檔案中, compileSdkVersion 和buildToolsVer