https://kotlinlang.org logo
Title
j

jk2018

02/21/2020, 7:03 PM
I've got an Android project that I'm building with gradle-5.4.1 . I keep getting this message "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings." I did use that argument, but I still can't figure out what exactly is deprecated. Anyone got a hint about where exactly to look?
t

tapchicoma

02/21/2020, 7:29 PM
usually with
--warning-mode all
deprecations are printed on top of the build log. Try run
tasks
task to have small build output.
j

jk2018

02/21/2020, 8:31 PM
Thx, Yahor. I just did this but I don't see anything.
When you say "build log", you mean whatever gradle prints to stdout, right? (I'm running it via gradlew from the command line).
t

tapchicoma

02/21/2020, 8:32 PM
right
j

jk2018

02/21/2020, 8:32 PM
I redir'd all output to a file and searched that for "depre" and don't find anything..
t

tapchicoma

02/21/2020, 8:35 PM
strange, usually Gradle prints it before
Tasks runnable from root project
section.
j

jk2018

02/21/2020, 8:36 PM
Just realized that that error doesn't show when I run gradlew from the console, only in AndroidStudio, but I have set it up to use the wrapper. Will keep looking.. thx for the help so far
Upgraded to Gradle 6.2, it's still building, but now I'm getting "Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0." 😉
t

tapchicoma

02/21/2020, 9:45 PM
it is expected with AGP 3.5
should be fixed in AGP 3.6
h

Harun

02/22/2020, 6:01 AM
Same message keeps on occuring on AGP 4.0 Canary 9
t

tapchicoma

02/22/2020, 9:23 PM
interesting, I would advice to open an issue in google tracker, as 4.0 is still in canary
h

Harun

02/24/2020, 6:34 AM
Okay will do so