Page cover image

Android 빌드하기

Google Play Console - Create production release

version 높이기

가장 먼저 해야할 일은 app.config.js 파일에서 version, buildNumber, versionCode를 높이는 것. (동일한 버전으로는 심사를 받을 수 없다.)

version: "24.23.0",
buildNumber: "58",
versionCode: 58,
  • version은 연도, 주차, 횟수 순으로 작성한다. 👉🏻 "24.23.0"이라면 24년도 23주차 0번째

  • buildNumber와 versionCode는 1씩 증가시킨다.

Shell Script 파일 실행시키기

./ready_android.sh
  • 명령어를 입력하고나면 android folder가 생성된다.

Android Studio에서 빌드하기

file -> open project

  • Build 탭에서 자동으로 빌드 시작

  • 빌드가 정상적으로 완료되었을 경우, 폴더 디렉토리가 다른 형태로 바뀐다.

Build -> Generate Signed App Bundle/APK

  • Android App Bundle: Google Play에 실사용 애플리케이션을 올려야할 때 사용

  • APK: 테스트용으로 빌드할 때 사용

  • release create 👉🏻 성공적으로 빌드가 되었다면 release 폴더가 생성된다. (app-release.apk)

안드로이드 핸드폰에 테스트 애플리케이션 설치

adb devices
vi ~/.zshrc

# 터미널 경로 입력
export PATH="$PATH:/Users/bienpr/Library/Android/sdk/platform-tools"

# .zshrc 실행
source ~/.zshrc
adb install app-relaeas.apk

google play console release 파일 업로드

  • closed testing ➡️ create new release

  • app-release.aab 업로드

Last updated