无法实例化活动ComponentInfo。没有找到类 [英] Unable to instantiate activity ComponentInfo. Didn't find class
问题描述
我想使用ActionBarSherlock但我总是得到一个错误。我已经在网上搜索周围,但我不能找到我的问题的解决方案。
这是我得到的错误:
i am trying to use ActionBarSherlock but i always got an error. I already search around the web, but i cant find a solution for my problem. Here is the error i got :
9月7日至24日:04:03.049:E / AndroidRuntime(2082):致命异常:主要
9月7日至24日:04:03.049:E / AndroidRuntime(2082):了java.lang.RuntimeException:无法实例活动ComponentInfo {com.moneynotes.view / com.moneynotes.view.SwipeViewActivity}:抛出java.lang.ClassNotFoundException:没找不到路径上类com.moneynotes.view.SwipeViewActivity:/data/app/com.moneynotes.view-1.apk
07-24 09:04:03.049: E/AndroidRuntime(2082): FATAL EXCEPTION: main 07-24 09:04:03.049: E/AndroidRuntime(2082): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.moneynotes.view/com.moneynotes.view.SwipeViewActivity}: java.lang.ClassNotFoundException: Didn't find class "com.moneynotes.view.SwipeViewActivity" on path: /data/app/com.moneynotes.view-1.apk
我已经添加了actionbarsherlock在Android类别库。
我的清单文件是这样的:
I already added the actionbarsherlock as library in android category. my manifest file is like this :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.moneynotes.view"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name="SwipeViewActivity"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
任何帮助将是AP preciated。
Any help would be appreciated.
推荐答案
让你选择了机器人depedencies和Android的私人图书馆下订单和出口选项卡中的Java构建路径catgeory?
如果你还没有,尽量选择它。
have you selected the 'android depedencies' and 'android private libraries' on the 'java build path' catgeory under 'order and export' tab? if you haven't, try to select it.
这篇关于无法实例化活动ComponentInfo。没有找到类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!