0

I developed an android application which includes some classes, when I tried to run application I see this in log Could not find class 'com.voice.NevisaWebService', referenced from method com.voice.Main.upload but application starts, when I do something in app that needs NevisaWebService class this error appears and application stops working java.lang.NoClassDefFoundError: com.voice.NevisaWebService, what does it mean? I have this class in my wokspace and everything is write why does this error appears?

here is full logcat:

enter image description here

3 Answers3

1

Try this:

Go to Project/Properties/Java Build Path/Order and Export -- Make sure there's a check in front of Android Dependencies and the support library, if you use it.Mark all checkboxes.Click on Apply and clean the project.

This worked for me.Hope this helps.

Siddharth_Vyas
  • 9,972
  • 10
  • 39
  • 69
0
  1. Please check whether all your Activities included in the AndroidManifest.xml file otherwise add to it.

  2. add environment variable for JAVA path from e.g, C:\Program Files\Java\jre6\bin

Saj
  • 849
  • 7
  • 12
0

Check for imports and visibility of class.class access modifier must be public.and then try to clean and rebuilt.

Pankaj Arora
  • 10,224
  • 2
  • 37
  • 59