Skip to content

[Android] Axios "Network Error" in React Native 0.80.1 (iOS works fine) #1539

@iita71737

Description

@iita71737
yarn react-native info

yarn run v1.22.19
$ /Users/chihhao/rewrite/esgoaldev/node_modules/.bin/react-native info
info Fetching system and libraries information...
System:
  OS: macOS 15.1
  CPU: (10) arm64 Apple M4
  Memory: 126.20 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.4.1
    path: /var/folders/mk/pjslmr954696rg78rd35rsqr0000gp/T/yarn--1753322540119-0.03535338071193039/node
  Yarn:
    version: 1.22.19
    path: /var/folders/mk/pjslmr954696rg78rd35rsqr0000gp/T/yarn--1753322540119-0.03535338071193039/yarn
  npm:
    version: 8.19.2
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2025.07.14.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/chihhao/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    Android NDK: 22.1.7171670
IDEs:
  Android Studio: 2024.3 AI-243.26053.27.2432.13536105
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 14.0.2
    path: /Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home/bin/javac
  Ruby:
    version: 3.3.0
    path: /Users/chihhao/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 19.0.0
    wanted: 19.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.80.1
    wanted: 0.80.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

above is my project info,
It's success build and run on iOS and Android via Xcode Version 16.2 (16C5032a) and Android Studio
But, the red alert [Network Error] is shown on Android only.
iOS is work fine,
I try a lot and survey many solution still not working
Idk how to solve it....

below is my package.json

{
  "name": "esgoaldev",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@babel/plugin-transform-runtime": "7.28.0",
    "@gorhom/bottom-sheet": "^4",
    "@mgcrea/react-native-dnd": "2.5.3",
    "@native-html/table-plugin": "5.3.1",
    "@react-native-camera-roll/camera-roll": "5.2.3",
    "@react-native-community/async-storage": "^1.12.1",
    "@react-native-community/blur": "4.4.1",
    "@react-native-community/checkbox": "0.5.16",
    "@react-native-community/geolocation": "3.4.0",
    "@react-native-community/netinfo": "11.3.1",
    "@react-native-community/push-notification-ios": "^1.8.0",
    "@react-native-documents/picker": "10.1.5",
    "@react-native-documents/viewer": "1.0.1",
    "@react-native-firebase/app": "22.4.0",
    "@react-native-firebase/messaging": "22.4.0",
    "@react-native-masked-view/masked-view": "0.2.7",
    "@react-native-picker/picker": "2.4.4",
    "@react-native/new-app-screen": "0.80.1",
    "@react-navigation/bottom-tabs": "^6",
    "@react-navigation/material-top-tabs": "^6",
    "@react-navigation/native": "^6",
    "@react-navigation/native-stack": "^6",
    "@react-navigation/stack": "^5.14.4",
    "@sentry/react-native": "5.32.0",
    "@shopify/react-native-skia": "2.1.1",
    "@wuba/react-native-echarts": "2.0.3",
    "add": "2.0.6",
    "axios": "1.11.0",
    "babel-plugin-module-resolver": "5.0.2",
    "config": "^3.3.6",
    "deprecated-react-native-prop-types": "5.0.0",
    "diff": "^5.0.0",
    "echarts": "5.6.0",
    "geolib": "3.3.4",
    "html-entities": "2.5.2",
    "i18n-js": "^3.8.0",
    "i18next": "^21.0.2",
    "intl-pluralrules": "2.0.1",
    "lodash": "4.17.21",
    "material-design-icons": "^3.0.1",
    "moment": "^2.29.1",
    "moment-timezone": "0.5.43",
    "patch-package": "8.0.0",
    "postinstall-postinstall": "2.1.0",
    "rainbowvis.js": "^1.0.1",
    "react": "19.1.0",
    "react-i18next": "^11.12.0",
    "react-native": "0.80.1",
    "react-native-android-open-settings": "1.3.0",
    "react-native-biometrics": "3.0.1",
    "react-native-blob-util": "0.22.2",
    "react-native-bootsplash": "6.3.10",
    "react-native-calendars": "1.1284.0",
    "react-native-chart-kit": "6.12.0",
    "react-native-circular-progress": "^1.3.7",
    "react-native-collapsible": "^1.6.0",
    "react-native-compressor": "1.12.0",
    "react-native-config": "1.5.1",
    "react-native-date-picker": "5.0.13",
    "react-native-device-info": "10.8.0",
    "react-native-dialog": "9.3.0",
    "react-native-drag-sort": "^2.4.2",
    "react-native-draggable-flatlist": "4.0.1",
    "react-native-draggable-grid": "^2.1.3",
    "react-native-fast-image": "^8.3.4",
    "react-native-file-viewer": "2.1.5",
    "react-native-fs": "2.20.0",
    "react-native-gesture-handler": "2.27.1",
    "react-native-heic-converter": "1.3.3",
    "react-native-hyperlink": "^0.0.19",
    "react-native-image-picker": "5.6.0",
    "react-native-keyboard-aware-scroll-view": "0.9.5",
    "react-native-keychain": "^7.0.0",
    "react-native-linear-gradient": "2.8.2",
    "react-native-maps": "1.24.7",
    "react-native-material-design": "^0.3.7",
    "react-native-mmkv": "3.3.0",
    "react-native-modal": "14.0.0-rc.1",
    "react-native-pager-view": "6.8.1",
    "react-native-paper": "5.13.1",
    "react-native-pdf": "6.7.7",
    "react-native-pell-rich-editor": "1.9.0",
    "react-native-permissions": "5.4.1",
    "react-native-pressable-opacity": "^1.0.10",
    "react-native-progress": "^4.1.2",
    "react-native-push-notification": "8.1.1",
    "react-native-reanimated": "3.18.0",
    "react-native-render-html": "6.3.4",
    "react-native-safe-area-context": "^5.0.0",
    "react-native-screens": "4.13.1",
    "react-native-share": "12.0.3",
    "react-native-skeleton-placeholder": "^5.0.0",
    "react-native-snackbar": "^2.4.0",
    "react-native-static-safe-area-insets": "^2.2.0",
    "react-native-svg": "15.12.0",
    "react-native-tab-view": "4.1.2",
    "react-native-table-component": "^1.2.1",
    "react-native-user-inactivity": "1.2.0",
    "react-native-vector-icons": "^10.0.0",
    "react-native-version-check": "3.5.0",
    "react-native-video": "5.2.1",
    "react-native-vision-camera": "^4.6.1",
    "react-native-webview": "13.15.0",
    "react-navigation-stack": "^2.10.4",
    "react-redux": "^7.2.3",
    "redux-thunk": "^2.3.0",
    "sp-react-native-in-app-updates": "1.4.0",
    "tslib": "2.8.1",
    "validator": "^13.5.2",
    "xlsx": "0.18.5",
    "yarn": "1.22.22"
  },
  "resolutions": {
    "tslib": "^2.6.1"
  },
  "devDependencies": {
    "@babel/core": "^7.24.0",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "7.27.6",
    "@react-native-community/cli": "19.0.0",
    "@react-native-community/cli-platform-android": "19.0.0",
    "@react-native-community/cli-platform-ios": "19.0.0",
    "@react-native/babel-preset": "0.80.1",
    "@react-native/eslint-config": "0.80.1",
    "@react-native/metro-config": "0.80.1",
    "@react-native/typescript-config": "0.80.1",
    "@testing-library/jest-native": "5.4.3",
    "@tsconfig/react-native": "3.0.2",
    "@types/jest": "^29.5.13",
    "@types/react": "^19.1.0",
    "@types/react-native": "0.72.2",
    "@types/react-native-vector-icons": "6.4.17",
    "@types/react-test-renderer": "^19.1.0",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "metro": "0.83.0",
    "metro-core": "0.83.0",
    "prettier": "2.8.8",
    "react-test-renderer": "19.1.0",
    "typescript": "5.1.3"
  },
  "engines": {
    "node": ">=18"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions