android androidruntime java,android - AndroidRuntime java.lang.NoClassDefFoundError: - Stack Overflo...

I have an android application which used external library (appcompat-v7) for action bar. My application starts from registration activity then to signin activity and after successful signin Dashboard activity is launched which has actionbar with tabs and swipes. Registration activity and signin activity works fine but when I click on Signin button application crashes with the error mention in title. I have addid the appcompat library to my work space and also added to my project as well. I have checked many solutions at SO but none of them worked for me. here are steps I have done.

Added appcompat to workspace as library project as mention on developer.android page.

Added jar files of appcompat to build path of appcompat unchecked android dependencies.

Added appcompat library project to my project (say Project X)

Checked all library of project X, fix project properties, clean and rebuild.

Moved android private libraries to top on order and Export tab.

added appcompatv7 to projects tab on Java build path.

Still no luck :(

My order and export tab looks like this from top to bottom

1-Android Private libraries

2-Ksoap2-android-assembly-2.4-jar-with-dependencies.jar (Jar file is located in D:\jarfiles)

3-android Dependencies

4-/gen

5-/src

6-Android 4.4.2

Here is Manifest

android:allowBackup="true"

android:icon="@drawable/ic_launcher"

android:label="@string/app_name"

android:theme="@style/CustomActionBarTheme" >

android:name="com.example.appname.registration.Register" (only com.example.appname is replaced with original name of application when posted on SO)

android:label="@string/app_name" >

This is Sign in OnClick Event

Intent dashboardintent = new Intent(getApplicationContext(), DashBoard.class);

startActivity(dashboardintent);

finish();

ab39cf5edff033feef8e4b8d67df2aeb.png

411a829629ead22d8b26519474a236cf.png

Log Cat

01-28 14:09:14.942: E/AndroidRuntime(658): FATAL EXCEPTION: main

01-28 14:09:14.942: E/AndroidRuntime(658): java.lang.NoClassDefFoundError: com.example.appname.DashBoard

01-28 14:09:14.942: E/AndroidRuntime(658): at com.example.appname.registration.SignIn$1.onClick(SignIn.java:59)

01-28 14:09:14.942: E/AndroidRuntime(658): at android.view.View.performClick(View.java:2485)

01-28 14:09:14.942: E/AndroidRuntime(658): at android.view.View$PerformClick.run(View.java:9080)

01-28 14:09:14.942: E/AndroidRuntime(658): at android.os.Handler.handleCallback(Handler.java:587)

01-28 14:09:14.942: E/AndroidRuntime(658): at android.os.Handler.dispatchMessage(Handler.java:92)

01-28 14:09:14.942: E/AndroidRuntime(658): at android.os.Looper.loop(Looper.java:123)

01-28 14:09:14.942: E/AndroidRuntime(658): at android.app.ActivityThread.main(ActivityThread.java:3683)

01-28 14:09:14.942: E/AndroidRuntime(658): at java.lang.reflect.Method.invokeNative(Native Method)

01-28 14:09:14.942: E/AndroidRuntime(658): at java.lang.reflect.Method.invoke(Method.java:507)

01-28 14:09:14.942: E/AndroidRuntime(658): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

01-28 14:09:14.942: E/AndroidRuntime(658): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

01-28 14:09:14.942: E/AndroidRuntime(658): at dalvik.system.NativeStart.main(Native Method)

01-28 14:09:16.602: I/Process(658): Sending signal. PID: 658 SIG: 9

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值