Skip to content
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

Run command fails if build is skipped #488

Closed
Menardi opened this issue Sep 1, 2018 · 1 comment
Closed

Run command fails if build is skipped #488

Menardi opened this issue Sep 1, 2018 · 1 comment
Assignees
Labels

Comments

@Menardi
Copy link
Contributor

Menardi commented Sep 1, 2018

cordova-android version: v8.0.0-dev

As part of the builders cleanup PR (#461), I removed all the builders except for the StudioBuilder. It turns out that the none option is still invoked when the user uses the cordova run command in a way that doesn't trigger a build (like if a build has been done just before it). This causes the run command to fail.

cc @erisu

@Menardi Menardi added the bug label Sep 1, 2018
@Menardi Menardi self-assigned this Sep 1, 2018
@erisu
Copy link
Member

erisu commented Sep 1, 2018

To expand on the issue, it appears that cordova run actually triggers two builds. The first build uses studio and builds successfully. The second build is triggered after the message deploying to emulator and tries to use none which throws an exception.

Build Log File

Additionally, when using cordova build android and installing the app with adb install the application closes immediately when trying to launch the app. It might be related to pathing. Using adb logcat you will see this error also.

ADB Log File

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants