When running cordova run with a declared platform, everything is good.
However, on cordova run without any platform declaration, cordova will try to run all platforms.
Let's say that browser runs first and android runs second. When it's the turn of android to run, it will search for target default which was set in browser platform arguments. Since both platforms will use these arguments, android will never complete its build as it never finds default target that was intended for cordova-browser only.
Bug Report
When running
cordova run
with a declared platform, everything is good. However, oncordova run
without any platform declaration, cordova will try to run all platforms. Let's say that browser runs first and android runs second. When it's the turn of android to run, it will search for targetdefault
which was set in browser platform arguments. Since both platforms will use these arguments, android will never complete its build as it never findsdefault
target that was intended forcordova-browser
only.Problem
What is expected to happen?
Run all platforms without issues.
What does actually happen?
Android platform crashes.
Information
Command or Code
Run
cordova run
command without any platform declaration. Problem is located in https://github.com/apache/cordova-browser/blob/master/bin/template/cordova/lib/run.js.Environment, Platform, Device
Version information
Cordova 9.0.0
Checklist