I'm trying to add this script on android studio :
DefaultHttpClient client = new DefaultHttpClient();
but, i getting a error like this :
Cannot resolve symbol 'DefaultHttpClient'
how to solving?
just add the following script in build.gradle(Module.app) :
android{
useLibrary 'org.apache.http.legacy'
}
and click 'Sync Now' at top right.
bingo!