-
-
Save verNANDo57/9c14d529d91e79f3b42fa6bd7b9eba85 to your computer and use it in GitHub Desktop.
Workarounds for building S on 8GB RAM environment: | |
1. At the start of the build: | |
[ 99% 138/139] /mnt/ssd/lineage/out/soong/.bootstrap/bin/soong_build /mnt/ssd/lineage/out/soong/build.ninja | |
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments | |
sudo apt install zram-config for installing zram-config package | |
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot | |
After booting cat /proc/swaps to check if zram is enabled or not | |
2. To avoid issues while building metalava (outOfMemoryException: java heap space) | |
Pick this commit --> https://github.com/verNANDo57/android_build_soong/commit/ffc8846a01fcfc20d6cf8ca701ef73d99f15acad |
Hello I creatin lineageos 19.0 but ı 8gb ram wit build rom but lineage/out/soong/.bootstrap/bin/soong_build /mnt/ssd/lineage/out/soong/build.ninja ı can't pass, even it take my time, ı looked at what was said here, but you did not understand anything, can you help me please.
If you have 8gb of ram, i recommend at least a 24gb swapfile.
(you can Google how to add one)
How do i do it?
hello ı have 8gb ram and 27gb swap but not build android.
Hello how do create cmd.BuildTool
Hello how do create cmd.BuildTool
Its already there you have to change the heap. Lineage is currently combing to files into one. I post later. What your gonna do is change the value on every of heap. Once you do this it will build.
will this work for android 13?
will this work for android 13?
I don't think so, try searching guide for A13.
will this work for android 13?
WELL my friend built los 20 with 8gb ram + 36gb zram (fedora)
will this work for android 13?
I don't think so, try searching guide for A13.
Yupp these things are still working just have to increase Java max heap size limit by 1gb more.
Your configurtion worked. I finally got past the meta lava. Build is almost done.
