Can't Resolve Symbol 'defaulthttpclient' And 'httppost' In Android
i build a new project.but i have a little problem.i can't use DefaultHttpClient and HttpPost even after i use it in my previous project already. Is there any external librery i hav
Solution 1:
There are two different DefaultHttpClient classes are available in the jars, you imported the wrong one, Remove the import of DefaultHttpClient from your class file, and add this one,
import org.apache.http.impl.client.DefaultHttpClient;
One more thing, It should not be HttpPost, it will be HttpClient complete example,
import org.apache.http.impl.client.DefaultHttpClient;
HttpClienthttpClient=newDefaultHttpClient();
HttpPosthttpPost=newHttpPost();
Post a Comment for "Can't Resolve Symbol 'defaulthttpclient' And 'httppost' In Android"