-
Notifications
You must be signed in to change notification settings - Fork 220
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
Task.leftShift(Closure) method has been deprecated #214
Comments
Which version do you use? |
gradle version is 3.4 |
Please upgrade to a higher version because it is fixed since 2.4.1 |
thanks ... |
Sorry, can anybody help me, i know this warning can replaced with doLas{} but how can i achieve that condition if im using task like this ?
|
compilerArgs looks like a Collection. Try options.compilerArgs.add("xxx") |
Thanks for your fast respon @shenliuyang
Warning still goes on, i think the root cause not in that task.
|
You should remove the doLast as it will run it if the task is done and this
is too late to change the arguments. Instead you can add it directly inside
tasks.withType(JavaCompile) { options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Werror") }
Should also work.
Which version of release plugin do you use?
Siagian <[email protected]> schrieb am Mo., 22. Mai 2017, 05:41:
… Thanks for your fast respon @shenliuyang <https://github.com/shenliuyang>
So i task become like this:
tasks.withType(JavaCompile) { doLast {
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Werror") } }
Warning still goes on, i think the root cause not in that task.
The Task.leftShift(Closure) method has been deprecated and is scheduled to
be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#214 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABsepDU_ZVByOqSS4fbsbBNoDe08Cj72ks5r8RINgaJpZM4McI9i>
.
|
Hi @Hillkorn! Do you knoww here I could found v2.4.1 ? http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.researchgate%22%20AND%20a%3A%22gradle-release%22 |
@kopax It's available via jcenter |
Greeting to you members. For me it displayed as below: But it launched the Emulator. However complained of Old SDK as below:
Kibirango Gerald |
Do you use version 2.6? |
Yeah, @Hillkorn The problem was: i had set my minSdkVersion to an higher version of 24 instead of a low one like 14 as stated in the library.
I got help from this link This Link Thanks for your ##concern, ##Quick Response and the ##Mind of Sharing. |
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
The text was updated successfully, but these errors were encountered: