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

yhlim11님의 프로필 이미지
yhlim11

작성한 질문수

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

react-native-nmap 설치 후 빌드하면 에러

해결된 질문

작성

·

714

0

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.bat app:installDebug -PreactNativeDevServerPort=8081

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01

Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

Warning: ����ġ ���� ���(URI: "", ����: "base-extension")�Դϴ�. �ʿ��� ��Ҵ� <{}codename>,<{}layoutlib>,<{}api-level>�Դϴ�.

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':react-native-nmap:generateDebugRFile'.

> Could not resolve all files for configuration ':react-native-nmap:debugCompileClasspath'.

> Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-symbol-with-package-name, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}.

> Execution failed for JetifyTransform: C:\Users\jeong\.gradle\caches\modules-2\files-2.1\com.facebook.react\react-native\0.71.0-rc.0\7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543\react-native-0.71.0-rc.0-debug.aar.

> Java heap space

* 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

at makeError (C:\Users\jeong\Glins\node_modules\execa\index.js:174:9)

at C:\Users\jeong\Glins\node_modules\execa\index.js:278:16

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

at async runOnAllDevices (C:\Users\jeong\Glins\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)

at async Command.handleAction (C:\Users\jeong\Glins\node_modules\@react-native-community\cli\build\index.js:192:9)

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

PS C:\Users\jeong\Glins>

 

이런식으로 에러가 뜨는데 모든 캐시를 지우고 다른 프로젝트에서 시도해봐도 해결이 되지 않네요...ㅠㅠ

답변 1

0

yhlim11님의 프로필 이미지
yhlim11
질문자

https://github.com/facebook/react-native/issues/35210

혹시 이 내용이랑 관계가 있는건지 궁금합니다...ㅠㅠ 최대한 찾아보려고 하는데 해결이 안되네요,,,,

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

지금 RN 몇 버전이라고 하셨죠? 저기 나온대로 마지막 자리를 올려보세요.

yhlim11님의 프로필 이미지
yhlim11
질문자

0.66버전입니다 . 저기 나온대로 바꿨더니 또다른 에러가 나오긴했지만 다행히 해결하기 쉬운 에러라서 해결했습니다 감사합니다

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

덕분에 에러 확인해서 0.66.5로 settings 폴더 업데이트 해두었습니다. 감사합니다. 0.66버전까지만 발생하는 에러였네요.

yhlim11님의 프로필 이미지
yhlim11

작성한 질문수

질문하기