error cmake cache

React native 2023. 8. 29. 10:32

 사용하고 있는 드라이브의 용량이 부족해서, home/디럭테리에 있는 .gradle 폴더의 위치를 변경하고 빌드를 하니, 아래와 같이 오류가 발생하고 있었다.

해당 오류는 기존의 라이브러리를 컴파일 하던 파일이 이동하면서 기본의 파일을 못하고 있는 것 같았다.

> Configure project :react-native-reanimated
No AAR for react-native-reanimated found. Attempting to build from source.
Android gradle plugin: 7.4.2
Gradle: 8.0.1
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Task :app:mergeDebugResources FAILED

그리고 이런 오류뿐만 아니라, C, C++라비르러리를 컴파일하는 곳에서도 오류가 발생하기에, 캐시를 삭제하고 다시 빌드를 하니 문제가 해결되었다.

Android기준, React Native 프로젝트의 android/app/.cxx파일을 삭제하고, gradlew clean명령어로 캐시를 삭제하면 문제가 어느정도 해결이 된다.

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

중첩된 TouchableOpacity 에서 onPress 이벤트 감지  (0) 2023.11.09
구글 로그인 구현 1  (0) 2023.08.26