1. https://github.com/google/bundletool/releases
Releases · google/bundletool
Bundletool is a command-line tool to manipulate Android App Bundles - google/bundletool
github.com
2. .aab 파일이 있는 경로로 이동 > bundletool-all-1.15.0.jar 파일 붙여넣기
3. terminal 에서 하단 스크립트 실행
- 디버그키로 사인했을시
java -jar "bundletool-all-1.15.0.jar" build-apks --bundle="your.aab(변환할 .aab파일)" --output="universal.apks(.apk파일을 저장할 경로와 파일명)" --mode=universal
- 릴리즈키로 사인했을시
java -jar "bundletool-all-1.15.0.jar" build-apks --bundle="your.aab(변환할 .aab파일)" --output="universal.apks(.apks파일을 저장할 경로와 파일명)" --mode=universal --ks=keystore.keystore(사인한키스토어) --ks-pass=pass:키스토어비밀번호 --ks-key-alias=alias(사인한alias) --key-pass=pass:키비밀번호
4. --output에서 지정해준 경로에 .apks파일이 생성되는데 확장자를 .zip으로 변경 후 압축을 풀어주면 apk파일이 있습니다.
참고 :
https://stackoverflow.com/questions/53040047/generate-apk-file-from-aab-file-android-app-bundle
'개발관련 > android' 카테고리의 다른 글
HTTP 통신 응답헤더 가져오기 (0) | 2016.04.27 |
---|---|
이클립스에서 안드로이드스튜디오프로젝트로 변경하는법 (0) | 2015.05.04 |
string.xml 에 띄어쓰기 하기 (0) | 2015.03.09 |
popupWindow 사용방법 (0) | 2015.03.03 |
ScrollView 안에 WebView에 있을때 스크롤문제 (0) | 2015.02.17 |