I have added this line to my build.gradle
compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5'
and I want to use MultipartEntityBuilder in my code. However Android studio doesn't add the library to my code. Can anyone help me with this?
dependencies
closure? Do you havemavenCentral()
configured in the top-levelrepositories
closure?jcenter()
? It has more artifacts, better search, copy-paste snippets for Gradle and that's what Android Studio recommends.jcenter()
than Maven Central. There is also an outstanding issue to switch Gradle, Please to look in jcenter.