0

我有一个带有按钮的活动,我想使用此按钮启动 FragmentActivity。但我的问题是我的活动是未知的。我检查了我的 AndroidManifest 我所有的活动都已声明。您可以在日志下方找到。在这个类中,我使用了一个外部库。

08-02 10:51:49.574: E/dalvikvm(12660): Could not find class 'edu.dartmouth.cs.actiontabs.ViewPagerActivity', referenced from method edu.dartmouth.cs.actiontabs.TestActivity$1.onClick
08-02 10:51:49.714: E/SpannableStringBuilder(12660): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-02 10:51:52.035: E/AndroidRuntime(12660): FATAL EXCEPTION: main
08-02 10:51:52.035: E/AndroidRuntime(12660): java.lang.NoClassDefFoundError: edu.dartmouth.cs.actiontabs.ViewPagerActivity
08-02 10:51:52.035: E/AndroidRuntime(12660):    at edu.dartmouth.cs.actiontabs.TestActivity$1.onClick(TestActivity.java:28)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at android.view.View.performClick(View.java:4222)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at android.view.View$PerformClick.run(View.java:17337)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at android.os.Handler.handleCallback(Handler.java:615)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at android.os.Handler.dispatchMessage(Handler.java:92)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at android.os.Looper.loop(Looper.java:137)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at android.app.ActivityThread.main(ActivityThread.java:4895)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at java.lang.reflect.Method.invokeNative(Native Method)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at java.lang.reflect.Method.invoke(Method.java:511)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
08-02 10:51:52.035: E/AndroidRuntime(12660):    at dalvik.system.NativeStart.main(Native Method)

我的活动在清单文件中的声明:

        <activity android:name="edu.dartmouth.cs.actiontabs.ViewPagerActivity" >
        </activity>
4

0 回答 0