ReactNative 안드로이드 배포 빌드 스크랩(트러블슛팅 포함)

낭만개발자·2021년 8월 31일
0

ReactNative

목록 보기
5/7

1.벨로그 쉽게나옴, 안드로이드 파일 apk로 만드는 법
https://velog.io/@kimhyo_0218/React-Native-Android-%EB%B0%B0%ED%8F%AC%EC%9A%A9-%EB%B9%8C%EB%93%9C%ED%95%98%EA%B8%B0

  1. 추가 보충 yakuza homepage
    https://dev-yakuza.posstree.com/ko/react-native/android-running-on-device/

에러 1.
xecution failed for task ':app:mergeDexDebug'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > java.nio.file.NoSuchFileException: C:\Users\David\Desktop\Code\smartInsole\smartInsole_frontend_fin-master\android\app\build\intermediates\external_file_lib_dex_archives\debug\out
에러남

/android 내에 .gradle 폴더를 삭제 한 후 다시 실행하면 해결

출 : https://github.com/facebook/react-native/issues/28954

에러 2.
react-native-seoul-naver 라이브러리 sdk 버전인가 그게 27로 너무 낮아서 아래 에러가 남


* What went wrong:
Execution failed for task ':react-native-seoul_naver-login:verifyReleaseResources'.

해결 : /node_modules/@react-native-seoul/naver-login/android/build.gradle 여기 경로서 값을 아래처럼 바꿔준다.

def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
def DEFAULT_MIN_SDK_VERSION = 16
def DEFAULT_TARGET_SDK_VERSION = 28

https://maliceit.tistory.com/26

심화 : apk란? 그 구조는
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=ilikebigmac&logNo=221466806806

profile
낭만닥터와 슬의를 보고 저런 개발자가 되어야 겠다고 꿈꿔봅니다.

0개의 댓글