React Native Fetch on Android returns Network request failed
问题 I am building a React Native mobile application that is using a Laravel backend, currently running on localhost:8000. When making a fetch request from an Android device to my server, my application gets the following error logs: My code is below: export default class App extends Component { login() { fetch('http://localhost:8000/api/establishments/get') .then((response) => response.json()) .then((responseJson) => { console.log('success!'); }) .catch((error) => { console.error(error); }); }