AOSP 빌드 최소요구사항(자체검토)

.wslconfig 최소 빌드 가능한 설정 내용. HDD라면 Swap으로 버티겠지만. SSD에는 아주 좋지 않으므로, 가능한 RAM은 크게 잡길 권유 드립니다.

[wsl2]
memory=12G
swap=32G

4코어 8쓰레드 기준 시스템으로 AOSP Masterbranch(Android 14후보) lunch sdk_phone_x86_64설정으로
RAM 12G, SWAP 18G 는 있어야 성공함. RAM이 모자랄 경우(WSL 11G설정) 아래처럼 Jave Heap터짐. (SWAP포함하여 전체 메모리가 모자랄 경우. Soong빌드 준비시점에서 터짐.)

[ 80% 32485/40190] //frameworks/base:api-stubs-docs-non-updatable metalava merged [common]
FAILED: out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable-stubs.srcjar out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable_annotations.zip out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable_api.txt out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable_removed.txt out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/api_lint.timestamp out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/api_lint_report.txt out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/check_last_released_api.timestamp out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava/last_released_baseline.txt
out/host/linux-x86/bin/sbox --sandbox-path out/soong/.temp --output-dir out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava --manifest out/soong/.intermediates/frameworks/base/api-stubs-docs-non-updatable/android_common/metalava.sbox.textproto --write-if-changed
The failing command was run inside an sbox sandbox in temporary directory
out/soong/.temp/sbox/49a7cc33d80847891abf538139e05268e1581b41
The failing command line can be found in
out/soong/.temp/sbox/49a7cc33d80847891abf538139e05268e1581b41/sbox_command.0.bash
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at com.android.tools.metalava.model.text.ApiFile.getAnnotations(ApiFile.kt:405)
        at com.android.tools.metalava.model.text.ApiFile.parseMethod(ApiFile.kt:487)
        at com.android.tools.metalava.model.text.ApiFile.parseClass(ApiFile.kt:349)
        at com.android.tools.metalava.model.text.ApiFile.parsePackage(ApiFile.kt:228)
        at com.android.tools.metalava.model.text.ApiFile.parseApiSingleFile(ApiFile.kt:175)
        at com.android.tools.metalava.model.text.ApiFile.parseApi(ApiFile.kt:83)
        at com.android.tools.metalava.model.text.ApiFile.parseApi(ApiFile.kt:53)
        at com.android.tools.metalava.SignatureFileLoader.loadFromSignatureFiles(SignatureFileLoader.kt:43)
        at com.android.tools.metalava.SignatureFileLoader.load(SignatureFileLoader.kt:32)
        at com.android.tools.metalava.Driver.loadFromSources(Driver.kt:656)
        at com.android.tools.metalava.Driver.processFlags(Driver.kt:249)
        at com.android.tools.metalava.Driver.run(Driver.kt:107)
        at com.android.tools.metalava.Driver.run$default(Driver.kt:86)
        at com.android.tools.metalava.Driver.main(Driver.kt:76)
exit status 1
15:32:04 ninja failed with: exit status 1

#### failed to build some targets (01:11:28 (hh:mm:ss)) ####

게시됨

카테고리

작성자

태그: