Unable to call web service methods from Android project emulator

I created a web service based on this tutorial

I can start the service and call its methods, but I want to name them from the javascript project. I exported the ServiceClient project as a jar and add it to the path of creating new projects. When I run the android project from the emulator and try to call the web service command, I get java.lang.NoClassDefFoundError.

+6
source share
3 answers

If the Payeli solution does not work, you can right-click the joystick and add it to the build path using Build Path -> Add to build Path . This will include your jar file in the build path.

Another solution would be to right-click on the project and select Android Tools->Fix project properties . This option will show you the best possible solution to the problems with building the path.

0
source

Did you create the "libs" directory for the project at the same level as the src directory and copy the jar file there? If so, then payeli should work. Otherwise, on the Open Oder and Export tabs, check the specific jar file you made. Then it should work.

0
source

first add the jar file to your project. Then right-click on the Jar file and choose Build Path> Add To Build Path, which will create the Linked Libraries folder in your project.

0
source

All Articles