Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic with capacitor and Android not running emulator in IntelliJ

I ran npx doctor and npx cap sync

šŸ’Š   Capacitor Doctor  šŸ’Š 

 Latest Dependencies:

  @capacitor/cli: 2.2.1
  @capacitor/core: 2.2.1
  @capacitor/android: 2.2.1
  @capacitor/electron: 2.2.1
  @capacitor/ios: 2.2.1

Installed Dependencies:

  @capacitor/cli 2.2.1
  @capacitor/core 2.2.1
  @capacitor/android 2.2.1
  @capacitor/ios 2.2.1
  @capacitor/electron not installed

[success] Android looking great! šŸ‘Œ
  Found 0 Capacitor plugins for ios:
[success] iOS looking great! šŸ‘Œ
~/projects/private/growbox:šŸš€ ()$ npx cap open android
[info] Opening Android project at /Users//projects/private/growbox/android
~/projects/private/growbox:šŸš€ ()$ npx cap sync  
āœ” Copying web assets from mobile to android/app/src/main/assets/public in 5.45s
āœ” Copying native bridge in 10.89ms
āœ” Copying capacitor.config.json in 8.76ms
āœ” copy in 5.50s
āœ” Updating Android plugins in 15.83ms
  Found 0 Capacitor plugins for android:
āœ” update android in 86.12ms
āœ” Copying web assets from mobile to ios/App/public in 5.37s
āœ” Copying native bridge in 3.78ms
āœ” Copying capacitor.config.json in 4.42ms
āœ” copy in 5.41s
āœ” Updating iOS plugins in 15.84ms
  Found 0 Capacitor plugins for ios:
āœ” Updating iOS native dependencies with "pod install" (may take several minutes) in 26.92s
āœ” update ios in 26.98s
āœ” copy in 1.30ms
āœ” update web in 5.00μp
Sync finished in 38.021s

This is what I got and after that I ran: npx cap open android

Got: [info] Opening Android project at /Users//projects/private/growbox/android

And nothing happening. I have emulator running and everything properly installed and I'm using IntelliJ Ultimate latest

like image 466
hackp0int Avatar asked Sep 17 '25 08:09

hackp0int


1 Answers

Capacitor open command try to open Android Studio, if you use IntelliJ, you'll have to open it manually.

There is a feature request for opening different IDEs https://github.com/ionic-team/capacitor/issues/3242

like image 119
jcesarmobile Avatar answered Sep 19 '25 06:09

jcesarmobile