[Android Software/Hacking General [Developers Only]] SomeUser8:
HI,

Trying to build the android source code gotten from the official android Git repo, and after a few issues of repo sync I finally managed to try to make a build for android-12.1.0_r26 , but I get errors I couldn't find anywhere else, I've tried redownloading the folder from which the error comes from but that didn't help, I'm on a fedora based OS and all the dependencies should be all accounted for

here is the Konsole:

(Also if anyone has any tips for making a very basic stock android rom, I'd love to learn them)

[pc@nobara-pc AndroidOS]$ . build/envsetup.sh

[pc@nobara-pc AndroidOS]$ lunch aosp_arm-eng

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=12

TARGET_PRODUCT=aosp_arm

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=generic

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-6.5.6-200.fsync.fc38.x86_64-x86_64-Nobara-Linux-38-(KDE-Plasma)

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=SD2A.220601.004.B2

OUT_DIR=out

PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl hardware/google/camera hardware/google/camera/devices/EmulatedCamera device/generic/goldfish device/generic/goldfish-opengl

============================================

[pc@nobara-pc AndroidOS]$ m

14:41:41 ************************************************************

14:41:41 You are building on a machine with 15.5GB of RAM

14:41:41

14:41:41 The minimum required amount of free memory is around 16GB,

14:41:41 and even with that, some configurations may not work.

14:41:41

14:41:41 If you run into segfaults or other errors, try reducing your

14:41:41 -j value.

14:41:41 ************************************************************

build/make/core/soong_config.mk:195: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.

build/make/core/soong_config.mk:196: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=12

TARGET_PRODUCT=aosp_arm

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=generic

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-6.5.6-200.fsync.fc38.x86_64-x86_64-Nobara-Linux-38-(KDE-Plasma)

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=SD2A.220601.004.B2

OUT_DIR=out

PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl hardware/google/camera hardware/google/camera/devices/EmulatedCamera device/generic/goldfish device/generic/goldfish-opengl

============================================

[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja

FAILED: out/soong/build.ninja

cd "$(dirname "out/soong/.bootstrap/bin/soong_build")" && BUILDER="$PWD/$(basename "out/soong/.bootstrap/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --out "out/soong" -n "out" -d "out/soong/build.ninja.d" -t -l out/.module_paths/Android.bp.list -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used Android.bp

error: cts/tests/tests/virtualdevice/Android.bp:54:27: unrecognized property "per_testcase_directory"

error: cts/tests/tests/batteryhealth/Android.bp:44:27: unrecognized property "per_testcase_directory"

error: cts/tests/framework/base/locale/Android.bp:56:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/memunreachable/Android.bp:40:27: unrecognized property "per_testcase_directory"

error: cts/tests/tests/uidmigration/Android.bp:52:27: unrecognized property "per_testcase_directory"

error: cts/tests/tests/car_builtin/Android.bp:54:27: unrecognized property "per_testcase_directory"

error: cts/tests/framework/base/localeconfig/Android.bp:50:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/telecom/Android.bp:44:27: unrecognized property "per_testcase_directory"

error: cts/tests/framework/base/grammaticalinflection/Android.bp:45:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/sustainedperf/Android.bp:37:26: unrecognized property "data_device_bins_both"

error: cts/hostsidetests/sustainedperf/Android.bp:38:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/voiceinteraction/Android.bp:38:27: unrecognized property "per_testcase_directory"

error: cts/tests/tare/Android.bp:38:27: unrecognized property "per_testcase_directory"

error: cts/tests/ServiceKillTest/Android.bp:39:27: unrecognized property "per_testcase_directory"

error: cts/tests/tests/bionic/Android.bp:75:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/classpath/Android.bp:30:27: unrecognized property "per_testcase_directory"

error: cts/tests/tests/simpleperf/Android.bp:30:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/graphics/gpumetrics/Android.bp:34:27: unrecognized property "per_testcase_directory"

error: cts/tests/tests/hibernation/Android.bp:64:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/theme/Android.bp:45:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/theme/Android.bp:28:41: unrecognized property "product_variables.platform_sdk_version_or_codename"

error: cts/tests/tests/gwp-asan/enabled/Android.bp:19:1: module "CtsGwpAsanTestCases" already defined

cts/hostsidetests/gwp_asan/Android.bp:19:1 <-- previous definition here

error: cts/tests/tests/companion/Android.bp:73:27: unrecognized property "per_testcase_directory"

error: cts/tests/process/Android.bp:63:27: unrecognized property "per_testcase_directory"

error: cts/hostsidetests/scopedstorage/Android.bp:213:1: module "CtsAppCloningHostTest" already defined

cts/hostsidetests/appcloning/Android.bp:19:1 <-- previous definition here

14:41:44 soong bootstrap failed with: exit status 1

#### failed to build some targets (3 seconds) ####