npx cap run android
doesn't seem to do anything
#4230
Replies: 5 comments 9 replies
-
i get gradle errors aswell |
Beta Was this translation helpful? Give feedback.
-
@Harvtronix I'm also having this issue. Device list is empty when Do you intend on raising this as an issue? |
Beta Was this translation helpful? Give feedback.
-
Same issue, running |
Beta Was this translation helpful? Give feedback.
-
Looks like someone opened issue #4571 for this. Looks related to Android SDK 30 vs 29. I'll monitor that and hope for a solution soon! |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm super excited to be using the capacitor and ionic frameworks. I got my first capacitor app running on both android and ios in under an hour, which was awesome!
I'm having a bit of an issue though, so I'm curious if I'm doing something incorrectly or if perhaps I've hit a legitimate bug.
I'm using Capacitor 3.0.0-beta.3.
When I run
npx cap run android
, I get the following output:But then the terminal prompt just returns and nothing else ever happens. When I do the same for ios, it prompts me to select a virtual device and then launches the app in it. I'm not seeing the same sort of thing for android.
npx cap open android
works as expected and I can click the green "run" button in there to launch the app in a virtual device with no issues.For fun, I saw there was a
--target
command line option tocap run
, so I tried passing my virtual device's id to it:I also just tried listing the virtual devices from the command line via
advmanager
(not sure if this is nowcap
is doing it), and my device does indeed show up in the list.Any help would be appreciated!
I didn't see any debug-type arguments for
cap
, but if they are available, I'm more than happy to turn them on for additional info.Beta Was this translation helpful? Give feedback.
All reactions