Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include http library in Android Project using M preview in Eclipse ant build

With Android M Google has deprecated support for http library. To support existing applications use this library they have documented that using GRADLE build we can add support to http library by using following parameter.

android{
   useLibrary 'org.apache.http.legacy'
}   

How can we achieve the same in Eclipse environment using ant build ?

like image 979
sundeep Avatar asked Aug 18 '15 06:08

sundeep


1 Answers

Just copy

your Android SDK folder/sdk/platforms/android-23/optional/org.apache.http.legacy.jar

file to your project's Libs folder

like image 136
Gogs Avatar answered Oct 21 '22 10:10

Gogs