我敢肯定,這是一個簡單的辦法,我已經檢查了其他#1的答案,但似乎無法找到解決的辦法錯誤的地方,了java.lang.RuntimeException:無法實例活動ComponentInfo
這裏我Log cat error
E/AndroidRuntime(1164): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.teatimer/com.example.teatimer.MainActivity}:
java.lang.ClassNotFoundException: Didn't find class "com.example.teatimer.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.teatimer-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.teatimer-2, /system/lib]]
我意識到這個問題是在我AndroidManifest.xml
<application android:allowBackup="true" android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.teatimer.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
未找到類是com.example.teatimer.MainAct ivity但對我來說它在清單
感謝您的幫助,非常感謝它只是我一直的答案搜索,但只可我們找到一個
可能的重複:http://stackoverflow.com/questions/4688277/java-lang-runtimeexception-unable-to-instantiate-activity-componentinfo –