인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

marvelOppa님의 프로필 이미지
marvelOppa

작성한 질문수

배달앱 클론코딩 [with React Native]

프로젝트 시작하기

안드로이드빌드 에러

작성

·

4.4K

0

깃허브의 setting 파일을 내려받아서 다시 시작 하는 중입니다.

ios 는 시뮬레이터 제대로 동작하는

안드로이드가 빌드 에러 발생하여 문의 드립니다.

 

 

npm run android

 

> fooddeliveryapp@0.0.1 android

> react-native run-android

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.

Jetifier found 949 file(s) to forward-jetify. Using 16 workers...

info JS server already running.

info Installing the app...

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'FoodDeliveryApp'.

> Could not resolve all artifacts for configuration ':classpath'.

> Could not find com.facebook.react:react-native-gradle-plugin:.

Required by:

project :

* 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

BUILD FAILED in 2s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'FoodDeliveryApp'.

> Could not resolve all artifacts for configuration ':classpath'.

> Could not find com.facebook.react:react-native-gradle-plugin:.

Required by:

project :

* 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

BUILD FAILED in 2s

at makeError (/Users/charmbbong/Desktop/study/deliverymaptest/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)

at /Users/charmbbong/Desktop/study/deliverymaptest/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16

at processTicksAndRejections (node:internal/process/task_queues:96:5)

at async runOnAllDevices (/Users/charmbbong/Desktop/study/deliverymaptest/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)

at async Command.handleAction (/Users/charmbbong/Desktop/study/deliverymaptest/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details.

 

답변 2

0

저도 같은 문제가 발생해서요ㅠ
강사님이 보내주신 티스토리를 참고해서 해봤는데도
아래와 같은 에러가 뜹니다. 혹시 제가 경로를 '/Users/mm/food-delivery~'로 하지 않은 문제도 있을까요? ㅠ


Included build '/Users/mm/Desktop/study/food-delivery-app/setting/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

BUILD FAILED in 2s

at makeError (/Users/mm/Desktop/study/food-delivery-app/setting/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)

at /Users/mm/Desktop/study/food-delivery-app/setting/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16

at processTicksAndRejections (node:internal/process/task_queues:96:5)

at async runOnAllDevices (/Users/mm/Desktop/study/food-delivery-app/setting/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)

at async Command.handleAction (/Users/mm/Desktop/study/food-delivery-app/setting/node_modules/@react-native-community/cli/build/index.js:192:9)

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

경로문제는 아닐텐데 진짜 /Users/mm/Desktop/study/food-delivery-app/setting/node_modules/react-native-gradle-plugin 가 없나 확인해보세요.

0

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

https://rutel.tistory.com/398

여기 따라서 gradle 수정해보세요.

marvelOppa님의 프로필 이미지
marvelOppa

작성한 질문수

질문하기