[RN] react-native Android Emulator build error.

2024. 12. 4. 16:19·React Native
반응형

오류원인

Colud not connect to development server.

8081 포트에 에뮬레이터가 연결 되어 있지 않다는 에러다.

 

 

해결방법

/*연결된 에디바이스를 얻고*/
$ adb devices
List of devices attached
emulator-5554 device
emulator-5558 device


/*해당 디바이스와 포트를 연결해준다*/
$ adb -s emulator-5554 reverse tcp:8081 tcp:8081

 

위와 같이 이미 연결되어 있던 디바이스는 아무런 반응이 없지만

연결되어 있지 않았던 디바이스는 8081이라는 결과가 나타난다.

반응형

'React Native' 카테고리의 다른 글

[RN] react-native iOS App Bundle build - ver.distribution  (0) 2024.11.01
[RN] react-native Android App Bundle build - ver.distribution  (3) 2024.11.01
[RN] react-native Firebase Push Notification - iOS  (8) 2024.10.21
[RN] react-native simulator 'Hide Inspector'  (10) 2024.10.07
[RN] react-native 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: number.' 에러잡기  (2) 2024.09.13
'React Native' 카테고리의 다른 글
  • [RN] react-native iOS App Bundle build - ver.distribution
  • [RN] react-native Android App Bundle build - ver.distribution
  • [RN] react-native Firebase Push Notification - iOS
  • [RN] react-native simulator 'Hide Inspector'
nicee
nicee
답을 찾아가는 과정이 즐거운 프론트엔드 개발자의 기록
    반응형
  • nicee
    나의 개발일지
    nicee
  • 글쓰기 관리
  • 전체
    오늘
    어제
    • 분류 전체보기
      • Project01 [Chat App]
      • React Native
      • Git
      • Program Setting
      • nicee-day
      • Study
        • C++
  • 블로그 메뉴

    • 링크

      • 🌳 git키우기
      • 📚 일상기록
    • 공지사항

    • 인기 글

    • 태그

      공부
      리액트
      오블완
      k직장인
      app build
      불금
      IOS
      error
      firebase
      빌드에러
      React-native
      채팅앱
      APP
      타입스크립트
      티스토리챌린지
      Android
      typescript
      직장인짤
      nextjs
      k직장인일상
      next.js
      커피수혈
      React
      Xcode
      에러해결
      리액트네이티브
      백준코딩테스트
      c++
      앱개발
      rn
    • 최근 댓글

    • 최근 글

    • hELLO· Designed By정상우.v4.10.0
    nicee
    [RN] react-native Android Emulator build error.
    상단으로

    티스토리툴바