Http failure during parsing for http://localhost

Hi , I’m creating an application in Angular and when I open in Android Studio (npx cap open android) and Run the App I get this error.
In mi Web App I don’t have this error, but in the Android App I get this error when I try to connect to my API.

http://localhost in your device or emulator it’s the own device or emulator, not your server where you have the api for login in.
You have to use the local IP of the server instead of localhost (and if testing in a device, make sure it’s connected to the same network as the server)

Hi @julio-ionic even I am getting the same issue when I run it in the emulator. Based on your reply are you saying that if I deploy the application in a particular environment with the entire server url not with localhost. does it work?

Appreciating your support!

Hi @ocacorral Did you resolve the issue? even i am getting the same error from emulator.
Appreciate your help!