Unable to run ionic cap run android from wsl2 inorder to start android emulator

Unable to run ionic cap run android from wsl2 inorder to start android emulator

Questions : Unable to run ionic cap run android from wsl2 inorder to start android emulator

621

Every time i run ionic cap run android on in4codes_ionic-framework wsl2 to run my app on android emulator on in4codes_ionic-framework windows host, i get this error:

capacitor run android --no-sync --target Pixel_3_API_30 [capacitor] ✔ Running Gradle build in 2.45s [capacitor] ✖ Deploying app-debug.apk to Pixel_3_API_30 - failed! [capacitor] [error] node:events:368 [capacitor] throw er; // Unhandled 'error' event [capacitor] ^ [capacitor] [capacitor] Error: connect ECONNREFUSED 127.0.0.1:5554 [capacitor] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) [capacitor] Emitted 'error' event on Socket instance at: [capacitor] at emitErrorNT (node:internal/streams/destroy:157:8) [capacitor] at emitErrorCloseNT (node:internal/streams/destroy:122:3) [capacitor] at processTicksAndRejections (node:internal/process/task_queues:83:21) { [capacitor] errno: -111, [capacitor] code: 'ECONNREFUSED', [capacitor] syscall: 'connect', [capacitor] address: '127.0.0.1', [capacitor] port: 5554 [capacitor] } [capacitor] 

it keeps on failing at this step.. i have in4codes_ionic-framework done adb -a nodaemon server start on windows in4codes_ionic-framework host and running adb devices on wsl2 show me in4codes_ionic-framework my emulator running on port 5554, but ionic in4codes_ionic-framework cap run fails mysteriously!

Total Answers 0