[7] Included build '.../node_modules/react-native-gradle-plugin' does not exist.

Simune·2024년 1월 22일

React Native Errors

목록 보기
7/9

error Failed to install the app.
Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception.
* What went wrong:
Included build '/Users/chaeyun/Documents/tokki-front/node_modules/@react-native-gradle-plugin' does not exist.
* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
* Get more help at https://help.gradle.org


해결 방법

https://github.com/facebook/react-native/issues/36643 에서 발췌.

1️⃣ 첫번째 방법:

includeBuild('../node_modules/react-native-gradle-plugin')

->
  
includeBuild('../node_modules/@react-native-gradle-plugin')

2️⃣ 첫번째로 변경하였음에도 에러가 발생한다면 두번째 방법:

includeBuild('../node_modules/react-native-gradle-plugin')

->
  
includeBuild('../node_modules/@react-native/gradle-plugin')
profile
👩🏻‍💻🌱

1개의 댓글

comment-user-thumbnail
2025년 1월 2일

감사합니다! 덕분에 해결했어요!!

답글 달기