728x90
반응형

분류 전체보기 134

[React Native - android] unable to resolve dependency tree

* bug case 1. PC-A 에서 react-native run-android 커맨드 실행 시, 정상적으로 빌드 및 실행 되는 것을 확인함. 2. PC-A 에서 git push 3. PC-B 에서 git clone 4. PC-B 에서 react-native run-android 커맨드 실행 시, 정상적으로 빌드된 후 crash 발생. * 결론은, npm 버전이 달라서 발생한 버그였고 정확하게는 npm 7 에서 발생하는 버그였음 > PC-A npm version : 6.14.15 (node v14.18.1) > PC-B npm version : 7.x.x * error log 를 확인하기 위해, react-native init 으로 새 프로젝트를 생성 후 bug case 를 테스트 했더니 아래와 같이..

[React Native - android] java.lang.OutOfMemoryError (no error message)

여러 package들을 설치해서 사용하다보면 빌드 시 메모리 부족으로 발생하는 오류 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:packageDebug'. > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > java.lang.OutOfMemoryError (no error message) 차분하게 gradle.propertis 파일에 코드 한줄을 추가 후 해결 가능 # android > gradle.properties .....

[React Native -android] Error: spawn ./gradlew EACCES

프로젝트 폴더를 최초 commit 받거나 삭제 후 다시 빌드 할 때, react-native run-android 커맨드 실행 시 아래 에러가 가끔 발생함 Error: spawn ./gradlew EACCES at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:467:16) at processTicksAndRejections (internal/process/task_queues.js:82:21) 접근 권한 문제로 아래 커맨드를 실행해주면 해결됨 chmod 755 android/gradlew

[React Native - ios] 'React/RCTDefines.h' file not found

* react-native 0.64.2 → 0.65.1 로 업그레이드 후 빌드 시 발생 React Native Upgrade Helper 의 가이드에 따라 v0.65.1 으로 업그레이드 후, Xcode v12.0.1 에서 Build System 을 New Build System 으로 빌드 시 아래와 같이 에러가 발생함 'React/RCTDefines.h' file not found 에러가 발생했고, 오른쪽의 상세보기를 클릭하면 아래와 같이 RCTBridgeModule 에 뭔가 수정이 필요해 보인다. In file included from /Users/.../react-native_0.65.1/node_modules/react-native-haptic-feedback/ios/RNReactNativeHapt..

[React Native -android] responder.scrollResponderScrollTo is not a function, js engine: v8

* react-native 0.64.2 → 0.65.1 로 업데이트 후 발생 기존에 사용중이던 react-native-keyboard-aware-scroll-view 라이브러리가 crash 난 것으로 추정됨 개선된 버전으로 아래와 같이 변경해주면 된다. # packge.json //before "react-native-keyboard-aware-scroll-view": "^0.9.4", //after "react-native-keyboard-aware-scroll-view": "APSL/react-native-keyboard-aware-scroll-view#pull/501/head", * reference : https://github.com/APSL/react-native-keyboard-aware-s..

[React Native -android] Google Play Console 앱 서명 키 인증서 vs 업로드 키 인증서 & Firebase 연동

# 업로드 키 vs 앱 서명 키 업로드 키 인증서 : 생성한 .abb 파일을 Google Play Console에 업로드 할 때, 구글에서 검증을 위해 사용하는 것 앱 서명 키 인증서 : 구글에서 최종적으로 서명하는 키 즉, 개발자가 업로드 키로 서명 후 .abb 를 Google Play Console 에 업로드 --> 구글이 앱 서명 키로 자동 변경 후 스토어 출시 # 업로드 키 및 앱 서명 키로 나눠지 이유 개발자가 업로드 키를 분실할 경우를 대비해서, 중간에 검증단계를 넣어 앱 서명 키의 키 스토어를 구글에서 보관하는 기능을 추가 # 외부 연동 시 Firebse 연동 시는 앱을 업로드 하기 위한 것이 아니라, 출시된 앱과 연동을 위한 것이기에 앱 서명 키 인증서의 지문을 등록해야 함 오류 케이스 테..

[React Native - android] Google Play Store 출시를 위한 keystore 생성 및 등록

개발 완료 후 Google Play Store 출시를 위해, release용 인증서를 생성하고 확인함 1. /android/app 위치에서 아래 커맨드 실행 # location : [project]/android/app $ keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 2. 아래 질문들에 답한 후, 마지막에 'y' 입력 3. 아래와 같이 [project]/android/app 위치에 my-upload-key.keystore 가 생성됨 4. gradle.properties 파일에 코드를 추가 # [project]..

[React Native - android] .abb 추출하기

출시를 위해 Google Play Console 에 App 등록 시, 기존에는 .apk 파일이 등록되었는데 2021년 8월 부터 Abb 파일로만 등록이 가능하다고 한다. * reference : https://android-developers.googleblog.com/2021/06/the-future-of-android-app-bundles-is.html # location : [project] $ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle # location : [project]/android $ ...

[React Native] 파일 확장자 에러 : failed to read PNG signature: file does not start with PNG signature

App 개발 시 기본으로 설정되어있던 android launcher image 를 변경하였고, debug 모드로 빌드(cmd : react-native run-android) 했을 시 정상적으로 되었지만, release apk 를 빌드(cmd: react-native run-android --variant=release) 하니 다음과 같은 오류가 발생함. > Task :app:mergeReleaseResources FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warni..

728x90
반응형