Capacitor compiled Ionic app: How to debug in Android Studio?

From your first screenshot it seems that your code is calling http://localhost? Well, localhost from the point of view of the Android device is… the Android device itself. That’s why you get a response from Capacitor.

To call your API you need to use an address that works on your local network at least, if not a public one.

1 Like