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)