1. apk 뽑는 블로그 그대로 따라했음
https://bomjjack.github.io/programming/2018/01/06/rn-android-app-release/
React Native 릴리즈 빌드(안드로이드 편)
안드로이드편.
bomjjack.github.io
2. apk 뽑기는 성공했는데 api url이 https가 아닌 http 여서 통신이 안됐음.
안드로이드 release 버전에서는 http 통신이 기본적으로 안됨. 그래서 설정을 해줘야 함!
해결책 -> github.com/facebook/react-native/issues/24408#issuecomment-537081276
Fetch not working for HTTP requests on Android · Issue #24408 · facebook/react-native
🐛 Bug Report When using fetch on http endpoints, the request raises a Network Request Fail error. If works fine on https endpoints. To Reproduce use fetch with any http url. Expected Behavior The f...
github.com
3. 2번 해결하고 다시 1번 블로그에서 apk 뽑는 명령어 실행하면 apk 뽑기 성공!
4.
에러) app:transformClassesWithMultidexlistForRelease
> Task :app:transformClassesWithMultidexlistForRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForRelease'.
> GC overhead limit exceeded
이런 에러 났다.
해결 블로그!
https://codechacha.com/ko/how-to-solve-outofmemory-error-while-building-in-android/
안드로이드 스튜디오 - "GC overhead limit exceeded" 에러 해결 방법
Android Studio에서 앱을 빌드할 때 GC overhead limit exceeded 에러가 발생하였습니다. 해결방법은 gradle.properties에서 메모리 사이즈 늘리도록 설정을 변경하는 것입니다. OOM이 발생하는 원인을 제거할 수
codechacha.com
'Solve Problem > React Native' 카테고리의 다른 글
[React Native] Firebase Crashlytics 참고 블로그 (0) | 2020.08.12 |
---|---|
[React Native] react-navigation 화면이 포커스되었을 때를 감지하기 & 특정 화면에서 돌아왔을 때 api 호출하기 (4) | 2020.07.01 |
[React Native] react-native-svg ProgressCircle로 시계 나타내는 법 / startAngle, endAngle (0) | 2020.05.24 |
[React Native] AppState / detect foreground, background (0) | 2020.05.21 |
[React Native] DeviceInfo 휴대폰에 관한 정보 가져오기 / 휴대폰 기종 (1) | 2020.05.19 |