Search code examples
androidweb-servicesandroid-ksoap2

I get an error : "The import org.ksoap2.transport.HttpTransportSE" can not be resolved in Android


I am trying to use a web service from my Android App using ksoap and I downloaded ksoap2-android-assembly-2.3-jar-with-dependencies.jar.

I kept this .jar file in the lib folder.

I get errors in import statements:

import org.ksoap2.transport.HttpTransportSE;

What am I missing?

Can anybody please help me solve this issue?


Solution

    • Right Click Your Project

    • Go to Properties

    • Find below part

    • Click Add JARs

    • Choose your Jar from your lib folder

    • And it's OK!

    Click ADD JAR AND HERE

    EDIT :

    Also be sure your folder hierarchy looks like this :

    enter image description here

    And here's stable ksoap-2 library jar.