Task.leftShift(Closure) method has been deprecated



  • Hello to all.

    When executing the command: I see the information and after 30 seconds an error.

    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0.
    Please use Task.doLast(Action) instead. at build_cpi2ciq0xq9tufpedr81p3j2s.run(PATH\src-cordova\platforms\android\app\build.gradle:148)
    ;

    How to fix it?


  • Admin

    Upgrade “cordova-android” package from within the Cordova project folder (/src-cordova) with npm. Won’t hurt an upgrade of the “cordova” global npm package too.

    If problem persists, then please head to Cordova to report this. Thanks.


Log in to reply