0

.Problem is that project was not made by me.I have added this project and checked that all the necessary library file exist or not.Required KSOP2 Jar file is already in libs folder.And as the logcat suggest it is related with soapobject. Searched a lot before asking this question but none of the solution worked for me.May be this time I have explained properly.Please ignore some English language related error.

07-02 11:41:42.369: E/AndroidRuntime(3633): FATAL EXCEPTION: main
07-02 11:41:42.369: E/AndroidRuntime(3633): java.lang.IllegalStateException: Could not execute method of the activity
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.view.View$1.onClick(View.java:2695)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.view.View.performClick(View.java:3122)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.view.View$PerformClick.run(View.java:11942)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.os.Handler.handleCallback(Handler.java:587)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.os.Handler.dispatchMessage(Handler.java:92)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.os.Looper.loop(Looper.java:132)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.app.ActivityThread.main(ActivityThread.java:4028)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at java.lang.reflect.Method.invokeNative(Native Method)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at java.lang.reflect.Method.invoke(Method.java:491)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at dalvik.system.NativeStart.main(Native Method)
07-02 11:41:42.369: E/AndroidRuntime(3633): Caused by: java.lang.reflect.InvocationTargetException
07-02 11:41:42.369: E/AndroidRuntime(3633):     at java.lang.reflect.Method.invokeNative(Native Method)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at java.lang.reflect.Method.invoke(Method.java:491)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at android.view.View$1.onClick(View.java:2690)
07-02 11:41:42.369: E/AndroidRuntime(3633):     ... 11 more
07-02 11:41:42.369: E/AndroidRuntime(3633): Caused by: java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject
07-02 11:41:42.369: E/AndroidRuntime(3633):     at com.test.android.Dashboardlogin.validatelogin(Dashboardlogin.java:83)
07-02 11:41:42.369: E/AndroidRuntime(3633):     at com.test.android.Dashboardlogin.onBtnClicked(Dashboardlogin.java:62)
07-02 11:41:42.369: E/AndroidRuntime(3633):     ... 14 more
Rudra Singh
  • 5
  • 1
  • 5

3 Answers3

0

Paste your external jar in libs directory and then give path from your libs directory right click on project-->properties-->java build path-->add external jar's-->select your libs directory

No_Rulz
  • 2,679
  • 1
  • 20
  • 33
  • Done as you have told but nothing changed,same error.Problem is that project was not made by me.I have added this project and checked that all the necessary library file exist or not.Required KSOP2 Jar file is already in libs folder.And as the logcat suggest it is related with soapobject. Searched a lot before asking this question but none of the solution worked for me.May be this time I have explained properly.Please ignore some English language related error. – Rudra Singh Jul 02 '13 at 07:10
0

Have you added

ksoap2-android-assembly-2.6.2-jar-with-dependencies.jar

to be put under /libs folder so Eclipse ADT automatically adds your jars to the buildpath of your application.

And also you can

  1. Go to "Properties" of the project.
  2. Select "Java Build Path"
  3. Add External jars.
Nirali
  • 13,571
  • 6
  • 40
  • 53
0
 1)Go to "Properties" of the project.
 2)Select "Java Build Path"
 3)Add External jars.

And Also add that external file to libs folder. libs->New->file->Advanced..and add jar file to it.

Shani Goriwal
  • 2,111
  • 1
  • 18
  • 30