candybar-library
candybar-library copied to clipboard
Warning with Android Studio 3.1
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.
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.
@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.
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