React Native에서 "mergeDebugResources FAILED"가 나타날 때의 처리

작업 내용


3yarn 명령을 통해 안드로이드 시뮬레이터를 가동할 때 건물이 잘 통과했지만 갑자기 건물이 통과하지 못하기 때문에 미리 대응 방법을 적어야 한다.
$ yarn start
$ yarn android

잘못된 내용


틀린 내용, 투덜거려도 대답을 못 해서 좀 푹 빠졌죠.
yarn run v1.22.10
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1430 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...

> Configure project :app
Reading env from: .env

> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from react-native-project/node_modules/react-native/android

> Configure project :react-native-open-settings
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.5.3.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :app:mergeDebugResources FAILED

결과적으로 보면


gradlew clean을 통해 해결되었습니다.
앞으로 구축할 때 오류가 생기면 여기부터 해보고 싶어요.
$ cd android
$ ./gradlew clean
$ cd ..
$ yarn android

참고 문장


react-native 디렉토리 생성 실패: project\Android\app build \intermediate\res \merged \debug \values:app:mergeDebug Resources FAILED

좋은 웹페이지 즐겨찾기