Still getting warning : Configuration 'compile' is obsolete and has been replaced with 'implementation'
I've updated com.google.gms:google-services
from 3.1.1
to 3.2.0
and the warning stopped appearing.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.2.0'
}
}
Error Configuration 'compile' is obsolete and has been replaced with 'implementation' and api
I found a Complete solution for this issue. here is a simple explanation for changes in you build.gradle file.
- You have to replace compile with api where ever you are using any api ref. like: volley, GitHub dependancy.strong text
- You have to replace compile with implementation where ever you are using android library like play-services-maps,appcompat-v7 etc
ref
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. Can some one help me out to fix this bug?
For Android Studio mainly you have to change this in your Gradle App level inside your build.gradle just change compile for implementation. For example:
dependencies {
compile 'com.android.support:support-v4:27.0.3'
}
Should be:
dependencies {
implementation 'com.android.support:support-v4:27.0.3'
}
Warning: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'
i just update google sevices to last version and the problem fixed
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. Warning keeps coming up again and again
The problem is with jakewharton hugo plugin which I was using in the app
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
Relevant link:
https://github.com/JakeWharton/hugo/issues/156
Related Topics
How to Lock/Unlock Screen Programmatically
"No Cached Version... Available for Offline Mode."
Receive Result from Dialogfragment
How to View the SQLite Database on an Android Device
Lock the Android Device Programmatically
Android: How to Display Video Thumbnails
How to Detect Swipe Direction Between Left/Right and Up/Down
Proper Implementation of Viewpager2 in Android
How to Draw Interactive Polyline on Route Google Maps V2 Android
Android: Create Spinner Programmatically from Array
How to Make Bitmap Compress Without Change the Bitmap Size
How to Use Custom Font in a Project Written in Android Studio
Solution to Install_Failed_Insufficient_Storage Error on Android
Set Transparent Background of an Imageview on Android
How to Use Scrollview in Android
Checkbox in Recyclerview Keeps on Checking Different Items