Dependency Apache Http Client In Android With Google Apis
I have been using the google play services libraries just with Google+ login and it worked fine but now I want to include the Calendar API to my app. I am following this tutorial T
Solution 1:
in order to exclude that class from all the configurations:
configurations.all() {
exclude group: "org.apache.httpcomponents", module: "httpclient"
}
dependencies {
...
}
Solution 2:
I could fix the error by excluding the module httpclient from all configurations. Add this code to your guild.gradle file:
configurations {
compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
}
Solution 3:
I solved it this way..
I had integrated google+ signin, and sharing with my application. I just removed dependencies for API client dependency and just I had used just google play service dependency and it worked for me.
compile 'com.google.api-client:google-api-client-android:1.20.0
'- remove it
and
just use compile 'com.google.android.gms:play-services:7.5.0'
and all works fine.
Post a Comment for "Dependency Apache Http Client In Android With Google Apis"