question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

See original GitHub issue

[x ] bug report

Note “ionic start test blank” and “super” work just fine. “ionic start test conference” works when using “ionic serve” but trying to run on device or emulator fails with:

Current behavior:

cordova emulate android ANDROID_HOME=/home/mike/Android/Sdk JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 Subproject Path: CordovaLib null

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_5zuinex01yt6w4n27pf6xfeka.run(/home/mike/Git/minder2/platforms/android/build.gradle:142)

org.xwalk:xwalk_core_library:22+ Configuration ‘compile’ in project ‘:’ is deprecated. Use ‘implementation’ instead.

FAILURE: Build failed with an exception.

  • What went wrong:

A problem occurred configuring root project ‘android’.

All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

Expected behavior:

Steps to reproduce: Formatted laptop installed ubuntu 16.04.03 node 8.9.4 npm 5.6.0 Android Studio 3.0.1 ionic 3.19.1 openjdk 1.8.0_151

ionic start minder2 conference ionic cordova platform add android

~/Android/Sdk/tools emulator -avd default // previously created in Android Studio and starts emulator

ionic cordova emulate android

insert the output from ionic info here

cli packages: (/home/mike/.nvm/versions/node/v8.9.4/lib/node_modules)

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.5
    Cordova Platforms  : android 6.4.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.9.4
    npm               : 5.6.0 
    OS                : Linux 4.13

Environment Variables:

    ANDROID_HOME : /home/mike/Android/Sdk

Misc:

    backend : pro

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

20reactions
mikemichaeliscommented, Jan 23, 2018

I verified this solution works on my laptop dev environment. To fix I executed

ionic start conference conference cd conference npm install cordova-android@6.2.3 --save-exact ionic cordova prepare ionic cordova run android

Works great! Thanks!

I hope this helps somebody.

10reactions
danielesalazarscommented, Mar 17, 2018

Tengo el mismo error pero no lo puedo arreglar con nada, por favor orienten bien para la solucion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Task.leftShift(Closure) method has been deprecated
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
Read more >
The Task.leftShift(Closure) method has been ... - GitHub
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
Read more >
LeftShift method has been deprecated in Gradle
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
Read more >
Task.leftShift(Closure) deprecation clarification - Gradle Forums
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
Read more >
The Task.leftShift(Closure) method has been ... - Ionic Forum
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found