Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api' #126

Open
s7sundar opened this issue May 11, 2018 · 2 comments

Comments

@s7sundar
Copy link

s7sundar commented May 11, 2018

When I am trying to add the configuration on on build.gradle module the following error appeared

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "xxxxxx.trofeosolution.com"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.+'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    compile ('com.twitter.sdk.android:twitter:3.3.0@aar') {
        transitive = true
    }
}

Install using Bintray JCenter

Add twitter dependency to your build.gradle:

repositories {
  jcenter()
}

dependencies {
  compile('com.twitter.sdk.android:twitter:3.3.0@aar') {
    transitive = true
  }
}

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

@Sammekl
Copy link

Sammekl commented May 14, 2018

Hi,

Just change your dependency to the following:

dependencies {
  implementation('com.twitter.sdk.android:twitter:3.3.0@aar') {
    transitive = true
  }
}

@sathishmscict
Copy link

You need to add Fabric. Otherwise twitter dependencie not configured.Am faced above issue.But, now its working fine for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants