커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
expo 실행이 안되요
[왕초보] 나만의 수익성 앱, 앱개발 종합반 v5
4주차
북마크
채*성
댓글
2
추천
0
조회수
3
조회수
3
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.





import React,{useState,useEffect} from 'react';

import { StyleSheet, Text, View, Image, TouchableOpacity, ScrollView} from 'react-native';


const main = 'https://firebasestorage.googleapis.com/v0/b/sparta-image.appspot.com/o/lecture%2Fmain.png?alt=media&token=8e5eb78d-19ee-4359-9209-347d125b322c'

import data from '../data.json';

import Card from '../components/Card';

import Loading from '../components/Loading';

import { StatusBar } from 'expo-status-bar';

import * as Location from "expo-location";

export default function MainPage({navigation,route}) {

  //useState 사용법

  //[state,setState] 에서 state는 이 컴포넌트에서 관리될 상태 데이터를 담고 있는 변수

  //setState는 state를 변경시킬때 사용해야하는 함수


  //모두 다 useState가 선물해줌

  //useState()안에 전달되는 값은 state 초기값

  const [state,setState] = useState([])

  const [cateState,setCateState] = useState([])


  //하단의 return 문이 실행되어 화면이 그려진다음 실행되는 useEffect 함수

  //내부에서 data.json으로 부터 가져온 데이터를 state 상태에 담고 있음

  const [ready,setReady] = useState(true)


  useEffect(()=>{

    navigation.setOptions({

      title:'나만의 꿀팁'

    })  

    //뒤의 1000 숫자는 1초를 뜻함

    //1초 뒤에 실행되는 코드들이 담겨 있는 함수

    setTimeout(()=>{

        //헤더의 타이틀 변경

        getLocation()

        setState(data.tip)

        setCateState(data.tip)

        setReady(false)

    },1000)

 

   

  },[])


  const getLocation = async () => {

    //수많은 로직중에 에러가 발생하면

    //해당 에러를 포착하여 로직을 멈추고,에러를 해결하기 위한 catch 영역 로직이 실행

    try {

      //자바스크립트 함수의 실행순서를 고정하기 위해 쓰는 async,await

      await Location.requestForegroundPermissionsAsync();

      const locationData= await Location.getCurrentPositionAsync();

      console.log(locationData['coords']['latitude'])

      console.log(locationData['coords']['longitude'])


    } catch (error) {

      //혹시나 위치를 못가져올 경우를 대비해서, 안내를 준비합니다

      Alert.alert("위치를 찾을 수가 없습니다.", "앱을 껏다 켜볼까요?");

    }

  }


  const category = (cate) => {

    if(cate == "전체보기"){

        //전체보기면 원래 꿀팁 데이터를 담고 있는 상태값으로 다시 초기화

        setCateState(state)

    }else{

        setCateState(state.filter((d)=>{

            return d.category == cate

        }))

    }

}


  //data.json 데이터는 state에 담기므로 상태에서 꺼내옴

  // let tip = state.tip;

  let todayWeather = 10 + 17;

  let todayCondition = "흐림"

  //return 구문 밖에서는 슬래시 두개 방식으로 주석

  return ready ? <Loading/> :  (

    /*

      return 구문 안에서는 {슬래시 + * 방식으로 주석

    */


    <ScrollView style={styles.container}>

      <StatusBar style="light" />

      {/* <Text style={styles.title}>나만의 꿀팁</Text> */}

       <Text style={styles.weather}>오늘의 날씨: {todayWeather + '°C ' + todayCondition} </Text>

       <TouchableOpacity style={styles.aboutButton} onPress={()=>{navigation.navigate('AboutPage')}}>

          <Text style={styles.aboutButtonText}>소개 페이지</Text>

        </TouchableOpacity>

      <Image style={styles.mainImage} source={{uri:main}}/>

      <ScrollView style={styles.middleContainer} horizontal indicatorStyle={"white"}>

      <TouchableOpacity style={styles.middleButtonAll} onPress={()=>{category('전체보기')}}><Text style={styles.middleButtonTextAll}>전체보기</Text></TouchableOpacity>

        <TouchableOpacity style={styles.middleButton01} onPress={()=>{category('생활')}}><Text style={styles.middleButtonText}>생활</Text></TouchableOpacity>

        <TouchableOpacity style={styles.middleButton02} onPress={()=>{category('재테크')}}><Text style={styles.middleButtonText}>재테크</Text></TouchableOpacity>

        <TouchableOpacity style={styles.middleButton03} onPress={()=>{category('반려견')}}><Text style={styles.middleButtonText}>반려견</Text></TouchableOpacity>

        <TouchableOpacity style={styles.middleButton04} onPress={()=>{navigation.navigate('LikePage')}}><Text style={styles.middleButtonText}>꿀팁 찜</Text></TouchableOpacity>

      </ScrollView>

      <View style={styles.cardContainer}>

         {/* 하나의 카드 영역을 나타내는 View */}

         {

          cateState.map((content,i)=>{

            return (<Card content={content} key={i} navigation={navigation}/>)

          })

        }

       

      </View>

   

    </ScrollView>)

}


const styles = StyleSheet.create({

  container: {

    //앱의 배경 색

    backgroundColor: '#fff',

  },

  title: {

    //폰트 사이즈

    fontSize: 20,

    //폰트 두께

    fontWeight: '700',

    //위 공간으로 부터 이격

    marginTop:50,

    //왼쪽 공간으로 부터 이격

    marginLeft:20

  },

weather:{

    alignSelf:"flex-end",

    paddingRight:20

  },

  mainImage: {

    //컨텐츠의 넓이 값

    width:'90%',

    //컨텐츠의 높이 값

    height:200,

    //컨텐츠의 모서리 구부리기

    borderRadius:10,

    marginTop:20,

    //컨텐츠 자체가 앱에서 어떤 곳에 위치시킬지 결정(정렬기능)

    //각 속성의 값들은 공식문서에 고대로~ 나와 있음

    alignSelf:"center"

  },

  middleContainer:{

    marginTop:20,

    marginLeft:10,

    height:60

  },

  middleButtonAll: {

    width:100,

    height:50,

    padding:15,

    backgroundColor:"#20b2aa",

    borderColor:"deeppink",

    borderRadius:15,

    margin:7

  },

  middleButton01: {

    width:100,

    height:50,

    padding:15,

    backgroundColor:"#fdc453",

    borderColor:"deeppink",

    borderRadius:15,

    margin:7

  },

  middleButton02: {

    width:100,

    height:50,

    padding:15,

    backgroundColor:"#fe8d6f",

    borderRadius:15,

    margin:7

  },

  middleButton03: {

    width:100,

    height:50,

    padding:15,

    backgroundColor:"#9adbc5",

    borderRadius:15,

    margin:7

  },

  middleButton04: {

    width:100,

    height:50,

    padding:15,

    backgroundColor:"#f886a8",

    borderRadius:15,

    margin:7

  },

  middleButtonText: {

    color:"#fff",

    fontWeight:"700",

    //텍스트의 현재 위치에서의 정렬

    textAlign:"center"

  },

  middleButtonTextAll: {

    color:"#fff",

    fontWeight:"700",

    //텍스트의 현재 위치에서의 정렬

    textAlign:"center"

  },

  cardContainer: {

    marginTop:10,

    marginLeft:10

  },

  aboutButton: {

    backgroundColor:"pink",

    width:100,

    height:40,

    borderRadius:10,

    alignSelf:"flex-end",

    marginRight:20,

    marginTop:10

  },

  aboutButtonText: {

    color:"#fff",

    textAlign:"center",

    marginTop:10

  }



});




작성한 코드 및 에러 메세지


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study

$ cd sparta-myhoneytip-chae


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study/sparta-myhoneytip-chae (master)

$ expo start

WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo).

┌─────────────────────────────────────────────────────────────────────────┐

│                                     │

│  There is a new version of expo-cli available (6.3.2).         │

│  You are currently using expo-cli 6.3.1                │

│  Install expo-cli globally using the package manager of your choice;  │

│  for example: `npm install -g expo-cli` to get the latest version   │

│                                     │

└─────────────────────────────────────────────────────────────────────────┘


This command is being executed with the global Expo CLI. Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421

To use the local CLI instead (recommended in SDK 46 and higher), run:

› npx expo start


Starting project at C:\Users\corkd\OneDrive\바탕 화면\sparta-study\sparta-myhoneytip-chae

Some dependencies are incompatible with the installed expo package version:

 - react-dom - expected version: 18.1.0 - actual version installed: 18.2.0

Your project may not work correctly until you install the correct versions of the packages.

To install the correct versions of these packages, please run: expo doctor --fix-dependencies,

or install individual packages by running expo install [package-name ...]

Starting Metro Bundler

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

█ ▄▄▄▄▄ █▄▀▀▄▄█▀█▄█ ▄▄▄▄▄ █

█ █  █ ███▄█ ▀█▄█ █  █ █

█ █▄▄▄█ ██▄▀▄▀███▀█ █▄▄▄█ █

█▄▄▄▄▄▄▄█ █ ▀▄▀▄▀ █▄▄▄▄▄▄▄█

█ █ ▄▀▄██ ▄▄▀▀█▀ █▄█▀█▀▀▄█

█▀█▀ ▀▀▄ ▀ ▀█ ▄▀▀███▄▀▀ █

█ ██▄▀▄▄▄▄ █▄▄▀▄ █ ▄▀▀█▀ ██

█ ▄▄█ ▄▄▄▄▄▄ ▄▄▀ ▄▀ ██▄▀ █

█▄██▄█▄▄▄ ▀▄▀▀▄ █ ▄▄▄ ▄▀▄█

█ ▄▄▄▄▄ ██▀█▄▀ █ █▄█ ██▀▄█

█ █  █ █ ▀▀█▄██▄ ▄ ▄ █ █

█ █▄▄▄█ █▀▀▀█▄█▄ ▄█▀▀▄█  █

█▄▄▄▄▄▄▄█▄█▄█▄▄▄▄▄▄█▄▄███▄█


› Metro waiting on exp://192.168.0.2:19000

› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)   


› Press a │ open Android

› Press w │ open web


› Press r │ reload app

› Press m │ toggle menu


› Press ? │ show all commands


Logs for your project will appear below. Press Ctrl+C to exit.

Started Metro Bundler

Android Bundling complete 3447ms

Android Running app on SM-G991N

Object {

 "coords": Object {

  "accuracy": 14.163000106811523,

  "altitude": 65.80000305175781,

  "altitudeAccuracy": 1.0880743265151978,

  "heading": 0,

  "latitude": 37.7506033,

  "longitude": 127.0460031,

  "speed": 0,

 },

 "mocked": false,

 "timestamp": 1678624989922,

}

37.7505899

127.0460075

› Opening on Android...

No Android connected device found, and no emulators could be started automatically.

Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).

Then follow the instructions here to enable USB debugging:

https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

Error: No Android connected device found, and no emulators could be started automatically.

Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).

Then follow the instructions here to enable USB debugging:

https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

  at getAllAvailableDevicesAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:118:11)

  at processTicksAndRejections (node:internal/process/task_queues:95:5)  

  at Object.openProjectAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:938:21)

  at handleKeypressAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\TerminalUI.ts:305:27)

  at ReadStream.handleKeypress (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\TerminalUI.ts:269:7)


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study/sparta-myhoneytip-chae (master)

$ epxo start

bash: epxo: command not found


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study/sparta-myhoneytip-chae (master)

$ expo start

WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo).

┌─────────────────────────────────────────────────────────────────────────┐

│                                     │ 

│  There is a new version of expo-cli available (6.3.2).         │ 

│  You are currently using expo-cli 6.3.1                │ 

│  Install expo-cli globally using the package manager of your choice;  │ 

│  for example: `npm install -g expo-cli` to get the latest version   │ 

│                                     │ 

└─────────────────────────────────────────────────────────────────────────┘ 


This command is being executed with the global Expo CLI. Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421

To use the local CLI instead (recommended in SDK 46 and higher), run:    

› npx expo start


Starting project at C:\Users\corkd\OneDrive\바탕 화면\sparta-study\sparta-myhoneytip-chae

Some dependencies are incompatible with the installed expo package version:

 - react-dom - expected version: 18.1.0 - actual version installed: 18.2.0

Your project may not work correctly until you install the correct versions of the packages.

To install the correct versions of these packages, please run: expo doctor --fix-dependencies,

or install individual packages by running expo install [package-name ...]  

Starting Metro Bundler

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

█ ▄▄▄▄▄ █▄▀▀▄▄█▀█▄█ ▄▄▄▄▄ █

█ █  █ ███▄█ ▀█▄█ █  █ █

█ █▄▄▄█ ██▄▀▄▀███▀█ █▄▄▄█ █

█▄▄▄▄▄▄▄█ █ ▀▄▀▄▀ █▄▄▄▄▄▄▄█

█ █ ▄▀▄██ ▄▄▀▀█▀ █▄█▀█▀▀▄█

█▀█▀ ▀▀▄ ▀ ▀█ ▄▀▀███▄▀▀ █

█ ██▄▀▄▄▄▄ █▄▄▀▄ █ ▄▀▀█▀ ██

█ ▄▄█ ▄▄▄▄▄▄ ▄▄▀ ▄▀ ██▄▀ █

█▄██▄█▄▄▄ ▀▄▀▀▄ █ ▄▄▄ ▄▀▄█

█ ▄▄▄▄▄ ██▀█▄▀ █ █▄█ ██▀▄█

█ █  █ █ ▀▀█▄██▄ ▄ ▄ █ █

█ █▄▄▄█ █▀▀▀█▄█▄ ▄█▀▀▄█  █

█▄▄▄▄▄▄▄█▄█▄█▄▄▄▄▄▄█▄▄███▄█


› Metro waiting on exp://192.168.0.2:19000

› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)   


› Press a │ open Android

› Press w │ open web


› Press r │ reload app

› Press m │ toggle menu


› Press ? │ show all commands


Logs for your project will appear below. Press Ctrl+C to exit.

Started Metro Bundler


Cannot connect to Metro.


Try the following to fix the issue:

- Ensure that Metro is running and available on the same network

- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices   

- If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device

- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081


URL: 192.168.0.2:19000


Error: Connection reset

at node_modules\react-native\Libraries\Utilities\HMRClient.js:null in setHMRUnavailableReason

at node_modules\react-native\Libraries\Utilities\HMRClient.js:null in client.on$argument_1

at node_modules\metro-runtime\src\modules\vendor\eventemitter3.js:null in emit

at node_modules\metro-runtime\src\modules\HMRClient.js:null in _ws.onerror  

at node_modules\event-target-shim\dist\event-target-shim.js:null in EventTarget.prototype.dispatchEvent

at node_modules\react-native\Libraries\WebSocket\WebSocket.js:null in _eventEmitter.addListener$argument_1

at node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js:null in emit

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callFunction

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

█ ▄▄▄▄▄ █▄▀▀▄▄█▀█▄█ ▄▄▄▄▄ █

█ █  █ ███▄█ ▀█▄█ █  █ █

█ █▄▄▄█ ██▄▀▄▀███▀█ █▄▄▄█ █

█▄▄▄▄▄▄▄█ █ ▀▄▀▄▀ █▄▄▄▄▄▄▄█

█ █ ▄▀▄██ ▄▄▀▀█▀ █▄█▀█▀▀▄█

█▀█▀ ▀▀▄ ▀ ▀█ ▄▀▀███▄▀▀ █

█ ██▄▀▄▄▄▄ █▄▄▀▄ █ ▄▀▀█▀ ██

█ ▄▄█ ▄▄▄▄▄▄ ▄▄▀ ▄▀ ██▄▀ █

█▄██▄█▄▄▄ ▀▄▀▀▄ █ ▄▄▄ ▄▀▄█

█ ▄▄▄▄▄ ██▀█▄▀ █ █▄█ ██▀▄█

█ █  █ █ ▀▀█▄██▄ ▄ ▄ █ █

█ █▄▄▄█ █▀▀▀█▄█▄ ▄█▀▀▄█  █

█▄▄▄▄▄▄▄█▄█▄█▄▄▄▄▄▄█▄▄███▄█


› Metro waiting on exp://192.168.0.2:19000

› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)   


› Press a │ open Android

› Press w │ open web


› Press r │ reload app

› Press m │ toggle menu


› Press ? │ show all commands


No Android connected device found, and no emulators could be started automatically.

Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).

Then follow the instructions here to enable USB debugging:

https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

Error: No Android connected device found, and no emulators could be started automatically.

Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).

Then follow the instructions here to enable USB debugging:

https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

  at getAllAvailableDevicesAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:118:11)

  at processTicksAndRejections (node:internal/process/task_queues:95:5)  

  at Object.openProjectAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:938:21)

  at handleKeypressAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\TerminalUI.ts:305:27)

  at ReadStream.handleKeypress (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\TerminalUI.ts:269:7)


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study/sparta-myhoneytip-chae (master)

$ expxo startr

bash: expxo: command not found


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study/sparta-myhoneytip-chae (master)

$ expo start

WARNING: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo).

┌─────────────────────────────────────────────────────────────────────────┐

│                                     │ 

│  There is a new version of expo-cli available (6.3.2).         │ 

│  You are currently using expo-cli 6.3.1                │ 

│  Install expo-cli globally using the package manager of your choice;  │ 

│  for example: `npm install -g expo-cli` to get the latest version   │ 

│                                     │ 

└─────────────────────────────────────────────────────────────────────────┘ 


This command is being executed with the global Expo CLI. Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421

To use the local CLI instead (recommended in SDK 46 and higher), run:    

› npx expo start


Starting project at C:\Users\corkd\OneDrive\바탕 화면\sparta-study\sparta-myhoneytip-chae

Some dependencies are incompatible with the installed expo package version:

 - react-dom - expected version: 18.1.0 - actual version installed: 18.2.0

Your project may not work correctly until you install the correct versions of the packages.

To install the correct versions of these packages, please run: expo doctor --fix-dependencies,

or install individual packages by running expo install [package-name ...]  

Starting Metro Bundler

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

█ ▄▄▄▄▄ █▄▀▀▄▄█▀█▄█ ▄▄▄▄▄ █

█ █  █ ███▄█ ▀█▄█ █  █ █

█ █▄▄▄█ ██▄▀▄▀███▀█ █▄▄▄█ █

█▄▄▄▄▄▄▄█ █ ▀▄▀▄▀ █▄▄▄▄▄▄▄█

█ █ ▄▀▄██ ▄▄▀▀█▀ █▄█▀█▀▀▄█

█▀█▀ ▀▀▄ ▀ ▀█ ▄▀▀███▄▀▀ █

█ ██▄▀▄▄▄▄ █▄▄▀▄ █ ▄▀▀█▀ ██

█ ▄▄█ ▄▄▄▄▄▄ ▄▄▀ ▄▀ ██▄▀ █

█▄██▄█▄▄▄ ▀▄▀▀▄ █ ▄▄▄ ▄▀▄█

█ ▄▄▄▄▄ ██▀█▄▀ █ █▄█ ██▀▄█

█ █  █ █ ▀▀█▄██▄ ▄ ▄ █ █

█ █▄▄▄█ █▀▀▀█▄█▄ ▄█▀▀▄█  █

█▄▄▄▄▄▄▄█▄█▄█▄▄▄▄▄▄█▄▄███▄█


› Metro waiting on exp://192.168.0.2:19000

› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)   


› Press a │ open Android

› Press w │ open web


› Press r │ reload app

› Press m │ toggle menu


› Press ? │ show all commands


Logs for your project will appear below. Press Ctrl+C to exit.


› Dev Tools Web UI has been removed. Learn more: https://blog.expo.dev/sunsetting-the-web-ui-for-expo-cli-ab12936d2206

Started Metro Bundler


› Dev Tools Web UI has been removed. Learn more: https://blog.expo.dev/sunsetting-the-web-ui-for-expo-cli-ab12936d2206


› Dev Tools Web UI has been removed. Learn more: https://blog.expo.dev/sunsetting-the-web-ui-for-expo-cli-ab12936d2206

› Opening on Android...

No Android connected device found, and no emulators could be started automatically.

Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).

Then follow the instructions here to enable USB debugging:

https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

Error: No Android connected device found, and no emulators could be started automatically.

Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).

Then follow the instructions here to enable USB debugging:

https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

  at getAllAvailableDevicesAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:118:11)

  at processTicksAndRejections (node:internal/process/task_queues:95:5)  

  at Object.openProjectAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\src\Android.ts:938:21)

  at handleKeypressAsync (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\TerminalUI.ts:305:27)

  at ReadStream.handleKeypress (C:\Users\corkd\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start\TerminalUI.ts:269:7)


corkd@DESKTOP-HMEBTRV MINGW64 ~/OneDrive/바탕 화면/sparta-study/sparta-myhoneytip-chae (master)




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴