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

6
  • Please post your error from logcat. Commented Nov 7, 2013 at 10:07
  • Have you Add that Activity in Menifest file? Commented Nov 7, 2013 at 11:28
  • I have just one main activity Commented Nov 7, 2013 at 11:31
  • Ok have you Package named Voice? and Where is the class named NavisaWebserice? Commented Nov 7, 2013 at 11:35
  • Go to Project--> right click--> Properties--> Java BuildPath--> Order Export--> Tick all check boxes.. Clean Project and Run it again Commented Nov 7, 2013 at 11:36

3 Answers 3

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.

answered Nov 7, 2013 at 10:09
Sign up to request clarification or add additional context in comments.

8 Comments

now I get this error Conversion to Dalvik format failed with error 1
Did you add any external library?
yeah, I attached some external library
Then check all that from checkbox and apply and then clean project.
I did, and still having same problem
|
0

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

answered Nov 7, 2013 at 10:21

Comments

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

answered Nov 7, 2013 at 10:16

3 Comments

I have just one activity (main), what do you mean by your second way?
that means setting JAVA_PATH in your system
right click on 'Computer' from windows start then go to properties, and then advance settings, u'll find environment variable

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.