Skip to content
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 with Android Studio 3.1 #143

Open
walrus543 opened this issue Mar 31, 2018 · 3 comments
Open

Warning with Android Studio 3.1 #143

walrus543 opened this issue Mar 31, 2018 · 3 comments

Comments

@walrus543
Copy link

I got a red warning after upgrading.

Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018

The specified Android SDK Build Tools version (27.0.0) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Android Studio 3.1
Build #AI-173.4670197, built on March 22, 2018
JRE: 1.8.0_152-release-1024-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.14.29-1-MANJARO

Do you plan to publish an update soon?
Thank you.

@BoGnY
Copy link

BoGnY commented Apr 3, 2018

You have changed the gradle plugin version on build.gradle at this line:
classpath 'com.android.tools.build:gradle:3.0.1'
with
classpath 'com.android.tools.build:gradle:3.1.0'
but for Android Gradle plugin the minimum supported version of Android SDK build tools version is 27.0.3...

As described on setup wiki, you have changed the default requirements, so it isn't a plugin error, but it's yours Gradle misconfiguration...

However, as described in warning message, if you would like to use Android Gradle plugin version 3.1.0, you have to change on root build.gradle the Android SDK build tools version to 27.0.3 and on app/library subdir's build.gradle you have to change all dependencies compile with implementation, as it's deprecated on Android Gradle plugin version 3.0.0.

@walrus543
Copy link
Author

@BoGnY I didn't touch (manually) build.gradle since I imported the project into Android Studio.
So no, I didn't change anything.

It's either a problem with Android Sutdio or a missing update of Candybar.
I'm pretty sure many users of Candybar have/will have the same message.

@unmaskedfalesh
Copy link

unmaskedfalesh commented Apr 18, 2018

Same problem after configuring the android studio in new pc.
got rid of build-tools warning but this "compile" and "implementation" is still there.
Edit:
Fixed both warnings.

on buil.gradle (module:app) changed both compile to implementation

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

No branches or pull requests

3 participants