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:
- Created 6 years ago
- Reactions:2
- Comments:14 (1 by maintainers)
Top GitHub Comments
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.
Tengo el mismo error pero no lo puedo arreglar con nada, por favor orienten bien para la solucion.