크로스 플랫폼/React-Native <JSX>

[React-Native/오픈소스활동] ... does not contain a gradle build 안드로이드 스튜디오 에러 해결

TaeGyeong Lee 2023. 8. 15. 20:04

개요

프로젝트 디렉토리를 안드로이드 스튜디오로 여는 경우 아래와 같은 에러가 발생할 수 있습니다.

Directory 프로젝트명 does not contain a Gradle build
...

 

해결 방법

프로젝트 디렉토리가 아닌 프로젝트/android 디렉토리를 안드로이드 스튜디오로 열어보세요.

안드로이드 스튜디오는 프로젝트가 안드로이드 네이티브 프로젝트임을 가정하고 gradle 스크립트를 찾습니다. 프로젝트/android 디렉토리를 열어 gradle 스크립트를 문제없이 찾을 수 있도록 해야 합니다.

은근 많은 분들이 겪으시는 실수 같습니다.

메타 엔지니어 코르티쌤께서도 맞다고 해주셨네요.

 

참고 링크

 

React native screen and react safe area view is crashing , my react native version is 0.70.6 · Issue #35671 · facebook/react-n

Description i install "react-native-safe-area-context": "^4.4.1", "react-native-screens": "^3.18.2" on my project and its crashing my project , i have try everything i could but no solution,,,pleas...

github.com