Ionic-app-scripts: "ionic run android" Does not work on Ionic 2 rc5

Created on 23 Jan 2017  Â·  4Comments  Â·  Source: ionic-team/ionic-app-scripts

_From @AndersonBP on January 23, 2017 12:57_

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Commands ionic run android and ionic build android do not work after upgrade to rc5. But command ionic serve works normally.

Expected behavior:
Anderson Benevides@Anderson MINGW64 —/Documents

$ ionic run android
Running 'run:before' npm script before run

ionic-hello-world@ build C:\Users\Anderson Benevides
ionic-app-scripts build

[00:36:30] ionic-app-scripts 1.0.0
[00:36:30] build dev started
[00:36:30] clean started
[00:36:30] clean finished in 28 ms
[00:36:30] copy started
[00:36:30] transpile started
[00:36:58] transpile finished in 27.90 s
[00:36:58] webpack started
[00:36:59] copy finished in 29.38 s
[00:37:15] webpack finished in 17.65 s
[00:37:15] sass started [00:37:21] sass finished in 6.21 s
[00:37:21] build dev finished in 51.86 s

Anderson Benevides@Anderson MINGW64 —/Documenta/$ I

When you get to "[00:37:21] build dev finished in 51.86 s" to run the command and the build or run task is not executed

ionic info
Cordova CLI: 4.3.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.7.0
Xcode version: Not installed

_Copied from original issue: driftyco/ionic#10144_

needs_reply

Most helpful comment

_From @flabioassuncao on January 23, 2017 13:17_

Same problem with me

All 4 comments

_From @flabioassuncao on January 23, 2017 13:17_

Same problem with me

@AndersonBP, @flabioassuncao,

Can you provide an example or more details? This works fine on my end.

Thanks,
Dan

@danbucholtz ,

What information do you want?

Stuck after "build dev" completed - no error is displayed.
It does not start on the device, it only locks.

thanks for your help

Worked after running the commands below

Npm install -g cordova
Ionic platform rm android
Ionic platform add android

Solved!

Thanks @danbucholtz @brandyscarney

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jgw96 picture jgw96  Â·  3Comments

loicfavory picture loicfavory  Â·  4Comments

christofferjjohansen picture christofferjjohansen  Â·  3Comments

peterpeterparker picture peterpeterparker  Â·  4Comments

dbarrecoquel picture dbarrecoquel  Â·  3Comments