0

I am trying a simple soap webservice example. I added the ksoap2 jar file but still i am getting "The import org.ksoap2.serialization.SoapObject cannot be resolved".... Please help me

user1387035
  • 209
  • 4
  • 9

2 Answers2

3

You add any Jar-files to your project like this:

  1. Open your project's properties (right click)
  2. Choose 'Java Build Path'
  3. Choose 'Libraries' tab
  4. Click 'Add External Jar' button
  5. Find and choose *.jar file.

download ksoap2-android-assembly-2.6.4-jar-with-dependencies.jar

here a direct link to it

K_Anas
  • 31,226
  • 9
  • 68
  • 81
0

First of all just make a folder libs.

Copy and paste .jar files.

Goto properties-->Java Build Path-->Libraries. Here just import from yourproject/lib and press OK.

Bhavin
  • 6,020
  • 4
  • 24
  • 26
  • 1
    It's recommended that the lib folder to be called "libs", not lib or you might encounter problems with different tools. – pXel May 10 '12 at 12:38
  • I agree. I had problem with jar in lib folder. It's from android sdk r16 or r17 when jars should be in libs folder – Martin Vandzura May 10 '12 at 13:22