Rockpi 4b - Ubuntu20.04 build android9 error

Hi team,
I have a problem when building android9 (in ubuntu 20.04), would you please give me a favor or advice? and the logs are below:

$ make -j1
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rk3399
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.0-40-generic-x86_64-Ubuntu-20.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out

ninja: no work to do.
ninja: no work to do.
wildcard(out/target/product/rk3399/clean_steps.mk) was changed, regenerating…
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
out/ninja-rk3399.sh is missing, regenerating…
Saved manifest to commit_id.xml
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
File “device/rockchip/common/auto_generator.py”, line 114
continue
^
TabError: inconsistent use of tabs and spaces in indentation
[429/1103] including hardware/rockchip/omx_il/Android.mk …
tools/hooks .git/hooks
[431/1103] including hardware/rockchip/sensor/Android.mk …
YD>>PLATFORM_VERSION=9
YD>>ANDRIOD VERSION=9.9
YD>>VERSION_L=, VERSION_KK=
YD>>LOCAL_MODULE=sensors.rk30board
YD>>LOCAL_MODULE=sensors.rk30board, LOCAL_SRC_FILES=sensors_mpl.cpp SamsungSensorBase.cpp LightSensor.cpp ProximitySensor.cpp, LOCAL_SHARED_LIBRARIES=libinvensense_hal libcutils libutils libdl liblog libmllite libhardware
[610/1103] including system/sepolicy/Android.mk …
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1103/1103] including vendor/rockchip/common/vpu/Android.mk …
build/make/core/aapt2.mk:33: warning: overriding commands for target out/target/common/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat' build/make/core/aapt2.mk:33: warning: ignoring old commands for target out/target/common/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat’
build/make/core/Makefile:28: warning: overriding commands for target out/target/product/rk3399/vendor/lib/libjpeghwenc.so' build/make/core/base_rules.mk:412: warning: ignoring old commands for target out/target/product/rk3399/vendor/lib/libjpeghwenc.so’
build/make/core/Makefile:28: warning: overriding commands for target out/target/product/rk3399/vendor/lib/libjpeghwdec.so' build/make/core/base_rules.mk:412: warning: ignoring old commands for target out/target/product/rk3399/vendor/lib/libjpeghwdec.so’
build/make/core/Makefile:28: warning: overriding commands for target out/target/product/rk3399/vendor/lib64/libjpeghwenc.so' build/make/core/base_rules.mk:412: warning: ignoring old commands for target out/target/product/rk3399/vendor/lib64/libjpeghwenc.so’
05:10:33 ckati failed with: signal: killed

failed to build some targets (56:22 (mm:ss))

It could be out of memory.
Increase memory or swap.
Check this:
https://blog.csdn.net/weixin_45419341/article/details/124550667