New capacitor 3 "run" command

Just started updating capacitor to rc3 and when executing “npx cap run android” I only get this output:

npx cap run android
√ Copying web assets from www to android\app\src\main\assets\public in 10.95s
√ Creating capacitor.config.json in android\app\src\main\assets in 6.98ms
√ copy android in 11.00s
√ Updating Android plugins in 6.40ms
[info] Found 4 Capacitor plugins for android:
√ update android in 101.56ms

Then the terminal returns to the command prompt. Could this be a bug or am I missing some step on the upgrade process?

1 Like

I also thought I was skipping a step, but actually I just had to wait and after a couple of minutes the app was automatically installed. So it just need time to build.

This is not the case for me.

I realized that if I had a device connected than it starts gradle buils, otherwise no.
I think it should allow for emulator to run.

this was a bug in native-run, has been fixed in latest version (1.4.0)

since native-run is a dependency of @capacitor/cli, you can try to reinstall the CLI and it should pick the latest version, but make sure that was the case by checking the installed version in package-lock.json
If not updated, you can force update the dependency with npm update native-run --depth 6

1 Like

I can confirm that this solves the issue!
Best regards!