Reputation: 3
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.mysocialreader"
minSdkVersion 9
targetSdkVersion 23
multiDexEnabled true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
configurations
{
all*.exclude module: 'gson';
all*.exclude group: 'com.android.support', module: 'support-annotations'
// all*.exclude module: 'iofabricsdkandroid_fabric'
compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
all*.exclude module: "iofabricsdkandroid_fabric_2"
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:appcompat-v7:23.0.1'
compile files('libs/scribe-1.3.5.jar')
compile files('libs/signpost-commonshttp4-1.2.1.2.jar')
compile files('libs/signpost-core-1.2.1.2.jar')
compile files('libs/commons-codec-1.3.jar')
compile files('libs/io-fabric-sdk-android_fabric-classes.jar')
compile files('libs/universal-image-loader-1.9.2-with-sources.jar')
compile(files('libs/google-oauth-client-1.19.0.jar'))
compile('com.google.http-client:google-http-client-gson:1.19.0') {
exclude group: 'com.android.support', module: 'support-v4'
exclude(group: 'com.google', module: 'gson')
}
compile('com.google.api-client:google-api-client-android:1.19.0')
{
exclude(group: 'com.google', module: 'gson')
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
compile('com.google.http-client:google-http-client-android:1.19.0')
{
exclude(group: 'com.google.android', module: 'android')
exclude(group: 'com.google', module: 'gson')
}
compile('com.google.android.gms:play-services:8.4.0')
{
exclude group: 'com.google', module: 'gson'
}
compile('com.google.android.gms:play-services-ads:8.4.0')
{
exclude group: 'com.google', module: 'gson'
}
compile('com.google.android.gms:play-services-identity:8.4.0')
{
exclude group: 'com.google', module: 'gson'
}
compile('com.google.android.gms:play-services-gcm:8.4.0')
{
exclude group: 'com.google', module: 'gson'
}
// compile project(':iofabricsdkandroid_fabric_2')
compile project(':facebookSdk')
compile project(':diffHeightsGridView')
compile project(':vKOpenAuthActivity')
compile project(':comtwittersdkandroid_twitter_2')
}
Upvotes: 0
Views: 1074
Reputation: 25
I was able to fix this in Android Studio by going to Build>Clean Project
Upvotes: 0
Reputation: 11255
Open your terminal.
Go to your root project folder.
./gradlew clean
And also add this to your configuration part in build.gradle file.
all*.exclude group: 'com.android.support', module: 'support-v4'
Hope this will help you.
Upvotes: 2