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
Asked
Active
Viewed 432 times
0
-
1see this http://stackoverflow.com/questions/10020740/how-do-i-import-jars-in-an-android-project – Nikhil Lamba May 10 '12 at 12:34
-
hey ur problem solved or not ? – Nikhil Lamba May 10 '12 at 14:23
2 Answers
3
You add any Jar-files to your project like this:
- Open your project's properties (right click)
- Choose 'Java Build Path'
- Choose 'Libraries' tab
- Click 'Add External Jar' button
- 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
-
1It'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