변환하는 이유
유니티에서 Google Play Store에 올리기 위해서는 .aab 파일로 빌드해야한다. 하지만 .aab파일로는 스토어에 올리지 않는한 로컬 기기에 설치해서 테스트 해볼 수 없다. 따라서 .apk로 변환해주는 작업이 필요하다.
변환 하는 방법
- 아래 Github주소로 들어가서 알맞는 버전을 다운 받는다.
- 터미널이나 명령프롬포트 창(cmd) 을 이용하여 아래 명령어를 넣어준다. bundletool-all-1.8.0 부분과 AAB파일이름.aab 부분을 알맞게 수정해준다.
java -jar "bundletool-all-1.8.0.jar" build-apks —bundle="AAB파일이름.aab" —output="universal.apks" —mode=universal - 나온 universal.apks 확장자 파일을 .zip로 바꿔준다.
- .zip파일을 풀어 .apk파일을 실행한다.
Releases · google/bundletool
Bundletool is a command-line tool to manipulate Android App Bundles - google/bundletool
github.com
'프로그래밍' 카테고리의 다른 글
| Typora + Google Drive + R2 조합으로 최적의 글쓰기 환경 만들기 (0) | 2025.11.30 |
|---|---|
| Unity + iOS + Jenkins 빌드 자동화 정리 (0) | 2020.06.21 |