-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation'. #555
Comments
@Amagi82 Thanks for notifying. Agree with you. We are migrating to latest gradle. Will be releasing soon. |
i face still this issue please guide me |
@Amagi82 Really sorry to hear that. We have updated the gradle to use |
The solution is to upgrade classpath com.google.gms:google-services to classpath 'com.google.gms:google-services:3.2.1' in file in build.gradle Project: buildscript {
} allprojects { task clean(type: Delete) { |
Check my answer here at stackoverflow- https://stackoverflow.com/a/50620578/7857541 |
Right click on the Application folder then "Open Module Settings>Dependencies>Scope" and then sync the project. |
I`m still facing the same issue even i replace all compile in build.gradle file to implementation, and even i found that only 1 places compile is written in my project is like this android { |
@asadmukhtar28 I have the same problem as you and it started after use the Android studio assistant to connect to a firebase database already created. The connection is correct but I can't find that "compile" anywhere :-( I tried to clean project, rebuilt project and invalidate caches, restarts and did not work |
@jrroger Check your 'com.google.gms:google-services' in 'build.grandle' file. Check if you are using 'com.google.gms:google-services:3.2.1' |
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. 'build.grandle' //apply plugin: 'com.neenbedankt.android-apt' apply plugin: 'io.fabric' repositories { }
// compile project(':pushe-lib-0.10.2')
} android {
// applicationIdSuffix ".beta"
// defaultConfig.versionCode = 787
// productFlavors {
} apply plugin: 'com.google.gms.google-services' |
|
yes, I have, |
Hi! You just need to change the 'compile' by 'implementation' in the 'Build.Gradle' on module app. |
Explaination: since the compile is been obsolete in 2018 you must change this configuration as follows:
example:
Change it to:
if the issue still persists: open build.gradle (Project: yourproject) file
Also if the gradle sync is still failing: Open gradle-wrapper.properties file and replace it with following:
|
I dont know if this is a good solution, because i have dependencie with classpath 3.3.0 in the project and I continue with the problem.
|
Hi, Getting the following Error...
FAILURE: Build failed with an exception.
Please help me |
In your build.gradle files, "compile" was deprecated about 6 months ago in favor of "implementation"
https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html
The text was updated successfully, but these errors were encountered: