The import org.ksoap2.transport.HttpTransportSE cannot be resolved

user972570 picture user972570 · Sep 30, 2011 · Viewed 15k times · Source

I downloaded ksoap2 from this link:

after importing the downloaded .jar file into an Android project in Eclipse, I got import error for only the first import line (HttpTransportSE). I searched but nobody else has had/posted this issue. How could this be? thanks!

import org.ksoap2.transport.HttpTransportSE; //ERROR:The import org.ksoap2.transport.HttpTransportSE cannot be resolved
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;   

Answer

Jens picture Jens · Sep 30, 2011

You've downloaded the J2ME package, but HttpTransportSE is part of the J2SE jar file.

Shouldn't ksoap2-j2se-full-2.1.2.jar work just fine with Android?