[OnePlus X Q&A, Help & Troubleshooting] psychem:
i ran the build again to find the error here it is.

[ 0% 10/15922] Target buildinfo: /home/user/a...j/ETC/system_build_prop_intermediates/build.prop
Target buildinfo from: device/oneplus/onyx/system.prop
[ 0% 17/15922] AAPT2 link /home/user/android/.../obj/APPS/OnyxDoze_intermediates/package-res.apk
FAILED: /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2.srcjar /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/extra_packages /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/src/R.stamp /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/proguard_options
/bin/bash -c "(rm -rf /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 ) && (mkdir -p /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 ) && (rm -f /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-list ) && (touch /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-list ) && (rm -f /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-overlay-list ) && (touch /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-overlay-list ) && (echo -n '/home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v14-preference_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-appcompat_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-preference_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-recyclerview_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v4_intermediates/package-res.apk /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/flat-res/device/oneplus/onyx/doze/res/drawable_switchbar_background.xml.flat /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/flat-res/device/oneplus/onyx/doze/res/layout_doze.xml.flat /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/flat-res/device/oneplus/onyx/doze/res/layout_switch_bar.xml.flat /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/flat-res/device/oneplus/onyx/doze/res/values_styles.arsc.flat /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/flat-res/device/oneplus/onyx/doze/res/xml_doze_settings.xml.flat ' >> /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-overlay-list ) && (/home/user/android/lineage/out/host/linux-x86/bin/aapt2 link -o /home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/package-res.apk -z --no-static-lib-packages --auto-add-overlay \$(cat /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v14-preference_intermediates/extra_packages /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-appcompat_intermediates/extra_packages /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-preference_intermediates/extra_packages /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-recyclerview_intermediates/extra_packages /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/extra_packages /home/user/android/lineage/out/target/common/obj/JAVA_LIBRARIES/android-support-v4_intermediates/extra_packages) --manifest device/oneplus/onyx/doze/AndroidManifest.xml -I /home/user/android/lineage/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk -I /home/user/android/lineage/out/target/common/obj/APPS/org.lineageos.platform-res_intermediates/package-export.apk --java /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 --proguard /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/proguard_options --min-sdk-version 28 --target-sdk-version 28 --product default -c en_US,en_US,af_ZA,am_ET,ar_EG,ar_XB,as_IN,az_AZ,be_BY,bg_BG,bn_BD,bs_BA,ca_ES,cs_CZ,da_DK,de_DE,el_GR,en_AU,en_CA,en_GB,en_IN,en_XA,en_XC,es_ES,es_US,et_EE,eu_ES,fa_IR,fi_FI,fr_CA,fr_FR,gl_ES,gu_IN,hi_IN,hr_HR,hu_HU,hy_AM,in_ID,is_IS,it_IT,iw_IL,ja_JP,ka_GE,kk_KZ,km_KH,kn_IN,ko_KR,ky_KG,lo_LA,lt_LT,lv_LV,mk_MK,ml_IN,mn_MN,mr_IN,ms_MY,my_MM,nb_NO,ne_NP,nl_NL,or_IN,pa_IN,pl_PL,pt_BR,pt_PT,ro_RO,ru_RU,si_LK,sk_SK,sl_SI,sq_AL,sr_Latn_RS,sr_RS,sv_SE,sw_TZ,ta_IN,te_IN,th_TH,tl_PH,tr_TR,uk_UA,ur_PK,uz_UZ,vi_VN,zh_CN,zh_HK,zh_TW,zu_ZA,normal --preferred-density xxhdpi --version-code 28 --version-name 9 -R \\@/home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-overlay-list \\@/home/user/android/lineage/out/target/product/onyx/obj/APPS/OnyxDoze_intermediates/aapt2-flat-list ) && (/home/user/android/lineage/out/soong/host/linux-x86/bin/soong_zip -o /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2.srcjar -C /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 -D /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 ) && (/home/user/android/lineage/out/soong/host/linux-x86/bin/extract_jar_packages -i /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2.srcjar -o /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/extra_packages --prefix '--extra-packages ' ) && (rm -f /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/src/R.stamp ) && (for GENERATED_MANIFEST_FILE in \`find /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 -name Manifest.java 2> /dev/null\`; do dir=\`awk '/package/{gsub(/\\./,\"/\",\$2);gsub(/;/,\"\",\$2);print \$2;exit}' \$GENERATED_MANIFEST_FILE\`; mkdir -p /home/user/android/lineage/out/target/common/R/\$dir; prebuilts/build-tools/linux-x86/bin/acp -fp \$GENERATED_MANIFEST_FILE /home/user/android/lineage/out/target/common/R/\$dir; done ) && (for GENERATED_R_FILE in \`find /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/aapt2 -name R.java 2> /dev/null\`; do dir=\`awk '/package/{gsub(/\\./,\"/\",\$2);gsub(/;/,\"\",\$2);print \$2;exit}' \$GENERATED_R_FILE\`; mkdir -p /home/user/android/lineage/out/target/common/R/\$dir; prebuilts/build-tools/linux-x86/bin/acp -fp \$GENERATED_R_FILE /home/user/android/lineage/out/target/common/R/\$dir || exit 31; prebuilts/build-tools/linux-x86/bin/acp -fp \$GENERATED_R_FILE /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/src/R.stamp || exit 32; done ) && (touch /home/user/android/lineage/out/target/common/obj/APPS/OnyxDoze_intermediates/src/R.stamp )"
device/oneplus/onyx/doze/res/values/styles.xml:33: error: resource layout/preference_category_material_settings (aka org.lineageos.settings.doze:layout/preference_category_material_settings) not found.
device/oneplus/onyx/doze/res/values/styles.xml:44: error: resource layout/preference_material_settings (aka org.lineageos.settings.doze:layout/preference_material_settings) not found.
error: failed linking references.
[ 0% 19/15922] Building Kernel Config
make: Entering directory '/home/user/android/lineage/kernel/oneplus/onyx'
GEN /home/user/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make: Leaving directory '/home/user/android/lineage/kernel/oneplus/onyx'
make: Entering directory '/home/user/android/lineage/kernel/oneplus/onyx'
GEN /home/user/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make: Leaving directory '/home/user/android/lineage/kernel/oneplus/onyx'
[ 0% 21/15922] AAPT2 link /home/user/android/...S/PackageInstaller_intermediates/package-res.apk
packages/apps/PackageInstaller/res/layout-watch/wear_review_permission_title_pref.xml:23: warn: generated id 'android:id/icon' for external package 'android'.
packages/apps/PackageInstaller/res/layout-watch/wear_review_permission_action_pref.xml:17: warn: generated id 'android:id/title' for external package 'android'.
[ 0% 22/15922] AAPT2 link /home/user/android/.../obj/APPS/Settings_intermediates/package-res.apk
warn: removing resource com.android.settings:string/display_cutout_emulation_none without required default value.
ninja: build stopped: subcommand failed.
21:09:16 ninja failed with: exit status 1

#### failed to build some targets (01:09 (mm:ss)) ####