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!
On this page of the site you can watch the video online Android Studio Error - Cannot resolve symbol 'DefaultHttpClient' with a duration of hours minute second in good quality, which was uploaded by the user Ambar Hasbiyatmoko 24 April 2017, share the link with friends and acquaintances, this video has already been watched 3,157 times on youtube and it was liked by 9 viewers. Enjoy your viewing!