Memo/Error5 ✖ Android SDK - Required for building and installing your app on Android npx @react-native-community/cli doctor 이 코드로 환경설정을 진단 했을 때 아래와 같이 sdk를 다운 받았음에도 이러한 이슈가 있다면 ( 특히 Version supported 의 버전을 컨트롤 하고 싶을 때 ) 프로젝트 파일에서 android -> build.gradle 로 이동하여 버전을 맞춰주자 2022. 7. 17. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. 리액트 네이티브에서 npx react-native init AwesomeProject 명령어로 RN 셋팅을 하였다. 그리고 안드로이드 스튜디오 셋팅을 마치고 npx react-native run-android를 실행했을 때 아래와 같은 에러가 나온다. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. 이럴 땐 SDK 설치를 다시 확인해보자. 참고로 나는 Setting -> Android SDK -> SDK Platforms 에서 Android SDK Platform 33 과 Android SDK Platform 31 이 중복 설치되어있어서 하나를 삭제해주어 에러를 해결하였다. 2022. 7. 16. Node / 로그인 했는데 게시글 작성 시 401 나올 때 back의 미들웨어중 cors에서 credentials: true 를 추가했는지 확인해본다. credentials: true 없다면 추가해주고 이후 front도 확인한다. front에서 axios 의 세번째 인자로 withCredentials: true를 넣어줬는지 확인해보자 { withCredentials: true } 수정후 다시 로그인했는데도 cors에러가 나온다면 CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the req.. 2022. 6. 28. Error: COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' db와 시퀄라이즈 연동 후 서버를 실행하고 db 테이블을 살펴보는데 설정해놓은 테이블 일부분만 들어와있었다. 터미널을 확인해보니 몇몇 테이블은 Executing이 되었는데 어디서 에러가 났다. // 에러 문구 Error: COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' 이 에러는 아래와 같이 수정한다. // 에러 코드 charset: "utf8mb4", collate: "utf8_general_ci", // 수정 후 charset: "utf8mb4", collate: "utf8mb4_general_ci", 2022. 6. 25. 이전 1 2 다음